- Home /
Local Asset Bundles for Android
I'm trying to use Asset Bundles for Android, they load up perfectly when I run the game in the Editor, but not in the Android Emulator. I've tried using the file:// and the jar:file// but neither work. I also tried hosting the Asset Bundles in a server and loading them via a WWW and it worked, but I'd like my files to be in the device. They are in StreamingAssets, so they should be in the APK build. Do you know how to make them work?
If i use the path "jar:file://" + Application.dataPath + "!/assets/");where should i place the XXX.unity3d file!
Hi, did you have problem with long loading time on Android machine? I must wait cca 30sec while assetbundle is load and show on screen. pls help
Answer by XtremeLeo · Jun 12, 2011 at 03:58 AM
I've found the answer here. You've got to point your WWW to:
"jar:file://" + Application.dataPath + "!/assets/");
I was using /StreamingAssets/ instead of using the !/assets/ . I suggest moving this to the documentation.
Hey Xtremeleo,
Im trying to load asset bundle from sd card. I use www.LoadFromCacheOrdownload(path,version). The file exists , but when i check for bundle it says null. The asset bundle is in /mnt/sdcard/testbundle/test.unity3d
I also made sure the asset bundle is made for android platform using the optional parameter.
please help me out in this
If i use the path "jar:file://" + Application.dataPath + "!/assets/");where should i place the XXX.unity3d file!
i have got this path but its not fetching the my .unity3d file. I used the below link
"jar:file://" + Application.dataPath + "!/assets/cube.unity3d");