How to load external asset Bundles for Android? I have my .apk file and thats it. Inside this file i have a folder called res. But how can i copy files to that folder and load them?
Have somebody read assetBundles successfully or config files (xml) without writing a plugin?
iPhoneStreamingAssets does not exist anymore with U3
Its now called StreamingAssets and found within the Assets folder and available to all.
But realistically you might want to avoid it on android due to the market upload size restrictions and instead fetch them from a webserver to store them then
Thank you very much - in my case its better to not download it from the web.
But i had no success:
var url = “Lerpz.unity3d”
download = new WWW (“file://” + Application.dataPath + “/StreamingAssets/” + url);
or
download = new WWW (“file://” + Application.dataPath + “/Raw/” + url);
with both i have no success
Is the Application.dataPath “the” path or have i only use a substring of it (i tried data/app/Lerpz.unity3d and many other combinations)?
At this point the only way to extract the bundles inside the .apk is to do it with a plugin. I can access android.content.res.AssetManager from Java code.
I hope there will be a Unity method to do that soon.
why would you do that? extracting to apk?
i have similiar problem, i want to put assetbundles to a folder on sdcard or any other consistent place but i do not know how?
any ideas?