I am trying to open scenes via a WWW download and have found that it loads the object hierarchy but doesn’t load meshes, and also crashes when I exit play mode. I’ve created the scene app bundle like this:
var ret = BuildPipeline.BuildStreamedSceneAssetBundle( paths.ToBuiltin(String), savePath, EditorUserBuildSettings.activeBuildTarget);
And am loading it like this:
var x : AssetBundle = sceneWWW.assetBundle;
Application.LoadLevel("Scene Name");
I am loading scenes exactly the same way. Are you using the latest version of Unity?
Afaik Unity 3.5.1 had problems with the deserialization of compressed meshes in AssetBundles. Make sure you run the latest version and try to turn mesh compression off.
If this doesn’t help, try exporting you scene by using the BuildPlayer method instead of the BuildStreamedSceneAssetBundle. Not sure if it makes any difference but that’s what we are using to have more granular control over the build options.
BuildPipeline.BuildPlayer(paths.ToBuiltin(String), savePath, EditorUserBuildSettings.activeBuildTarget, BuildOptions.BuildAdditionalStreamedScenes);
Mesh compression was already off, but using BuildPlayer worked. The docs for that function are kind of misleading and it makes it sound like it will build an exe build of your app.