Possible Crash

I’m having a problem with Unity iPhone closing on any invocation of WWW.assetBundle. Doesn’t matter where or when, I’ve tried example projects as well as many different unity3d bundles and get the same result every time. I’m really at a loss as to what it could be:

private WWW web;
	
void Start () {
	web = new WWW(url);	
}

void Update () {
	if(web.isDone) {
		if(web.assetBundle) {
			print("Bundle!");
		}
        }
}

When i attach this script to a camera and run the scene in the player, Unity closes. I’m currently running Unity Pro, iPhone Advanced 1.5 on OS X 10.6.

Hi,
AssetBundles are a bit broken in Unity iPhone 1.5. They will be fixed with 1.5.1 release.

Workaround information:

  1. AssetBundles cannot be loaded when application is running in Unity iPhone Editor 1.5, but you can use this Editor to export asset bundle (that’s why I called it a bit broken :slight_smile: ).
  2. AssetBundles can be loaded when application is running on actual device, but you can load only asset bundles exported with exactly the same Unity iPhone Editor version as the application was built. In this case it is 1.5.