Loading Unity.bb content via Android app
I'm trying to make an apk with .obb files, alpha in a store, however when trying to download the .bb it doesn't fetch correctly or download all the content I'm not sure, any help would be appreciated.
is a structured app Android that has a resource folder owned by Unity (which is a .bob im im file).
I used the Downloader, License and Zip libraries that Google recommends.
The two scenarios I'm stuck with right now are:
[Scenario 1]
Using Unity to create an .obb file
Content of file from .obb Unity generated for me:
The app loads the .obb files correctly, but as soon as I try to run anything related to Unity in the app, it looks for files that Unity did not add to the .obb file and would crash.
[Scenario 2]
I just made my own zip file in assets folder containing more content:
gave it the correct naming convention
main.versionCode.packageName.obb
Apk downloads correctly and starts downloading the .obb file but fails 99% without logs.
Has anyone faced this problem? or maybe can point out what I am doing wrong?
thank!
source to share
You are using Unity 5.5.1 and this is a bug .
Quate from the Unity 5.6 release note.
- Android: Fixed readers from OBB (ApplicationPath). (893913)
You need to download Unity 5.6 or higher to fix this issue. I don't think there is any other way to fix this without updating.
Other things I recommend you try before upgrading:
1 . From Build Settings change Write Resolution from Internal to External (SDCard)
2 . Immediately add android.permission.WRITE_EXTERNAL_STORAGE
permission to AndroidManifest. This article describes how to use a custom AndroidManifest for your game.
3 . Use Unity's free Google Play OBB Downloader plugin to download OBB data.
I think the problem is with the file upload, so if # 1 and # 2 doesn't work, you definitely need to upgrade to 5.6 to get the Unity version, fixed this issue.
source to share