I used to load a level (scene) from a bundle after I it is downloaded in Unity 3.
Same code fails to run in Unity 4 throwing an exception saying that :
Level ‘name of my scene’ (-1) couldn’t be loaded because it has not
been added to the build settings. To add a level to the build settings use
the menu File->Build Settings…
Here is a code I am using:
...
stream = new WWW(url));
yield return stream;
stream.assetBundle.LoadAll();
Application.LoadLevel(levelName);
...
Even the Unity’s sample project generates the same exception and doesn’t work.
Please note that the scene is not available in the starter package and has to be loaded from a bundle.
Any idea?