Open example projects as “CharacterCustomization” and “AssetBundles” and i tried all methods to load assetbundles into scene.
PURPOSE: loading files with resources - .unity3d (locally on Android the device)
Let’s take for example the AssetBundles Tutorial project.
Scene: “Loader”.
Compiled *.unity3d copied in the folder “./Assets/StreamingAssets/”
In the InstantiateResource.js file registered a way for version Android
if (Application.platform == RuntimePlatform.Android)
download = new WWW ("jar:file://" + Application.dataPath +"!/assets/" + url);
In the Unity editor works without mistakes. Build .apk version for Android. Run apk on the device (SGS 2). On GUI press the DOWNLOAD buttons. Then shows % … 100% and UNLOAD. But in a scene anything isn’t present!
I tried many ways. Tried to compile under Android4 started on the ICS device - too anything. Check files in APK of “assets” folder - .unity3d files presents.
Though the project works in PC/MAC/WebPlayer… And when project switched to Android - work. No works compiled APK on Android device (many devices used HTC, SonyErricsson).
Well. thought there can be a matter in JAVA. Opened the tutorial “CharacterCustomization” project. This project is written on C#. Also add code:
This may be late to answer but i think the script that you are using to build .unity3d assetBundles is missing the BuildTarget.Android in BuildPipeline.BuildAssetBundle arguments