- Home /
Load AssetBundles on Android device
What am I missing? I have a game with each level as its own scene. I made each Scene into a assetbundle, which I can load in the Editor with Windows no problem. I made sure the build target is set to android. I made a StreamingAssets folder in Assets. But I can't ever get the assetsbundles to load on Android, I have tried "jar:file:///" + Application.dataPath + "!/assets/Scene_01.unity3d" and many other combinations. Each assetbundle is stored locally, and I can see the files packaged in the APK but I cant read them. I have looked at the AssetBundles tutorial... I'm lost and frustrated. Any help appreciated.
@jschipilow: Have you found a solution to this problem? I'm seeking a way to avoid using asset bundles at all...
Answer by Grammbo · Aug 21, 2012 at 03:15 PM
You need to be using the WWW class. Android APKs are compressed and aren't directly readable by System.IO classes. If you don't want to use WWW, you need a 3rd-party library to decompress the APK to have a look inside.
Documentation is a bit sparse but this is mentioned at the bottom of the StreamingAssets page.
I figured this out a while ago, but thank you anyway for answering.
How do i load assetbundle from the android local folder. If I create the Strea$$anonymous$$gAssets folder in the Unity Editor and place the AssetBundle there. Will I be able to load it from the device's local folders?
Your answer
Follow this Question
Related Questions
PlayerPrefs for unlocking items 1 Answer
A node in a childnode? 1 Answer
Can I load an assetbundle on linux platform ? 1 Answer
3D model is not showing in Android 1 Answer
Can we Load AssetBundle from localdisk on iOS and Android? 0 Answers