Comments (14)
Upgrading from unity 2018.4.5f1 to 2019.3.14 fixed the problem.
Thanks to gwiazdorrr to help me figure it out.
from betterstreamingassets.
It's all about compression; BSA doesn't support compressed Streaming Assets.
There is some strangeness with App Bundles, even when built and run locally; sometimes some Streaming Assets are compressed, sometimes not. I can't really put my finger on it.
Now, I understand you upload an App Bundle, not an APK?
from betterstreamingassets.
any news on the issue? Will you be able to add support for compressed assets?
from betterstreamingassets.
While it is possible, benefits of Streaming Assets would be lost (instant random access). And I don't have time at the moment.
Is it still broken with latest Unity?
from betterstreamingassets.
Woohoo, there's a workaround!
First there are inconsistent accounts of what makes stuff in Streaming Assets compressed:
https://issuetracker.unity3d.com/issues/android-loading-assets-from-assetbundles-takes-significantly-more-time-when-the-project-is-built-as-an-aab
https://forum.unity.com/threads/asset-bundles-in-streamingassets-directory-can-load-slower-when-building-the-android-app-bundle.711752/
https://forum.unity.com/threads/streamingassets-files-are-compressed-in-apk-when-build-app-bundle-google-play-option-is-used.739967/
However, it seems that as of now the workaround is to avoid uppercase letters in file names.
from betterstreamingassets.
Hello guys,
My StreamingAssets folder is all using lowercase letteers for files, any other way to fix this issue?
Thanks.
from betterstreamingassets.
Lowercase for folders too?
from betterstreamingassets.
The generated .aabb bundle contains a bin folder (not generated by us) where it contains upper case files & folders. Well, generated .apk also contain this bin folder.. mmmmmm
\assets\bin\Data\1408c9cfe620b824ba12e140640118a8
\assets\bin\Data\2e7ad78679bf43e4eba31c3c5e7a8a4a
\assets\bin\Data\3f5b5dff67a942289a9defa416b206f3
\assets\bin\Data\9af043668d149e041abe9f0adb94dd8a
\assets\bin\Data\a084e85e774d0184cb0ec4b8aa2944e0
\assets\bin\Data\bec9e088313381a42bc3cc5cbd54ce69
\assets\bin\Data\boot.config
\assets\bin\Data\c5cb98b65f5f94342a3f8787e26895d2
\assets\bin\Data\d82c1b31c7e74239bff1220585707d2b
\assets\bin\Data\ef5adf5b9dc526c43a1990bee79cebd2
\assets\bin\Data\f952c082cb03451daed3ee968ac6c63e
\assets\bin\Data\fade42e8bc714b018fac513c043d323b
\assets\bin\Data\globalgamemanagers
\assets\bin\Data\globalgamemanagers.assets.split0
\assets\bin\Data\globalgamemanagers.assets.split1
\assets\bin\Data\level0
\assets\bin\Data\sharedassets0.assets
\assets\bin\Data\unity default resources
\assets\bin\Data\Managed\etc\mono\browscap.ini
\assets\bin\Data\Managed\etc\mono\config
\assets\bin\Data\Managed\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx
\assets\bin\Data\Managed\etc\mono\2.0\machine.config
\assets\bin\Data\Managed\etc\mono\2.0\settings.map
\assets\bin\Data\Managed\etc\mono\2.0\web.config
\assets\bin\Data\Managed\etc\mono\2.0\Browsers\Compat.browser
\assets\bin\Data\Managed\etc\mono\4.0\DefaultWsdlHelpGenerator.aspx
\assets\bin\Data\Managed\etc\mono\4.0\machine.config
\assets\bin\Data\Managed\etc\mono\4.0\settings.map
\assets\bin\Data\Managed\etc\mono\4.0\web.config
\assets\bin\Data\Managed\etc\mono\4.0\Browsers\Compat.browser
\assets\bin\Data\Managed\etc\mono\4.5\DefaultWsdlHelpGenerator.aspx
\assets\bin\Data\Managed\etc\mono\4.5\machine.config
\assets\bin\Data\Managed\etc\mono\4.5\settings.map
\assets\bin\Data\Managed\etc\mono\4.5\web.config
\assets\bin\Data\Managed\etc\mono\4.5\Browsers\Compat.browser
\assets\bin\Data\Managed\etc\mono\mconfig\config.xml
\assets\bin\Data\Managed\Metadata\global-metadata.dat
\assets\bin\Data\Managed\Resources\Ionic.Zip.dll-resources.dat
\assets\bin\Data\Managed\Resources\mscorlib.dll-resources.dat
\assets\bin\Data\Managed\Resources\System.Data.dll-resources.dat
\assets\bin\Data\Resources\unity_builtin_extra
Yea all our assets & folders are lowercase.
We did some test of trying to read files before & after the assets/bin folder(the one that contains unity stuff with capital letters) but all failed..
from betterstreamingassets.
In my project i have "GoogleService-Info.plist" file in StreamingAssets folder. I assume i mustn't change its name because i think its auto generated file. Will it cause the problem again? (Other files and folders are lowercase)
(Sorry for my english)
Edit: It didn't cause the problem
from betterstreamingassets.
i tried to update the project as suggested by @pepoon , tried 2019.3.14 and 2019.4 LTS latest version also but still its not working , files in streaming folder i renamed it to lowercase characters already.
from betterstreamingassets.
@anandmulay3 Im only using lowcase chars and underscores '_'. Nothing else.Our version is 2019.4.0.f1
from betterstreamingassets.
@pepoon any numbers or space between two words??
from betterstreamingassets.
This issue is linked in readme but here it is closed. So this issue is still open?
from betterstreamingassets.
I have not tested this with recent Unity versions. The issue is linked to for context, link and explanation.
from betterstreamingassets.
Related Issues (20)
- Issues with GetFiles() throwing " DirectoryNotFoundException" on Android and stopping at the topmost folder HOT 2
- Special characters support HOT 1
- SubReadOnlyStream can Seek but cannot set Position HOT 3
- BetterStreamingAssets.DirectoryExists returns false HOT 1
- Does it works with WebGL? HOT 1
- Oh sir, Does it works with IOS? HOT 1
- How about make this plugin as a "Package" in "Package Manager"? HOT 9
- Question about file name lowercase HOT 3
- WebGL? HOT 5
- GetDirectories would be great HOT 1
- (BSA_TestScene) System.UriFormatException when opening trying to test paths in APK file? HOT 6
- not worked on assetbundle with offset HOT 1
- exception when using Unity Patch functionality HOT 1
- [Android] Initialize failed with unauthorized access exception. HOT 3
- Access folder in streamingAssets folder in Android HOT 1
- Is it support obb/aab file HOT 1
- I cannot use this plugin on android. HOT 6
- The library doesn't work in Edit Mode HOT 1
- Play Asset Delivery use Asset Targeting by Country can't read asset in the master apk file. HOT 2
- Support for OpenHarmony HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterstreamingassets.