Giter Site home page Giter Site logo

Comments (14)

pepoon avatar pepoon commented on July 27, 2024 2

Upgrading from unity 2018.4.5f1 to 2019.3.14 fixed the problem.
Thanks to gwiazdorrr to help me figure it out.

from betterstreamingassets.

gwiazdorrr avatar gwiazdorrr commented on July 27, 2024

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.

fpv999 avatar fpv999 commented on July 27, 2024

any news on the issue? Will you be able to add support for compressed assets?

from betterstreamingassets.

gwiazdorrr avatar gwiazdorrr commented on July 27, 2024

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.

gwiazdorrr avatar gwiazdorrr commented on July 27, 2024

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.

pepoon avatar pepoon commented on July 27, 2024

Hello guys,
My StreamingAssets folder is all using lowercase letteers for files, any other way to fix this issue?
Thanks.

from betterstreamingassets.

gwiazdorrr avatar gwiazdorrr commented on July 27, 2024

Lowercase for folders too?

from betterstreamingassets.

pepoon avatar pepoon commented on July 27, 2024

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.

XLIVE99 avatar XLIVE99 commented on July 27, 2024

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.

anandmulay3 avatar anandmulay3 commented on July 27, 2024

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.

pepoon avatar pepoon commented on July 27, 2024

@anandmulay3 Im only using lowcase chars and underscores '_'. Nothing else.Our version is 2019.4.0.f1

from betterstreamingassets.

anandmulay3 avatar anandmulay3 commented on July 27, 2024

@pepoon any numbers or space between two words??

from betterstreamingassets.

gtoto007 avatar gtoto007 commented on July 27, 2024

This issue is linked in readme but here it is closed. So this issue is still open?

from betterstreamingassets.

gwiazdorrr avatar gwiazdorrr commented on July 27, 2024

I have not tested this with recent Unity versions. The issue is linked to for context, link and explanation.

from betterstreamingassets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.