I had a previous discussion in regards to Unloading asset bundles after downloading them. In the reply Lucas had mentioned that it is always a good idea to unload the bundles to free up memory. However, I am a bit confused when it comes to scenes that reside in asset bundles. For instance, see the below code snippet. If I unload the asset bundle after loading the scene, I assume that the asset bundle will be removed from memory and the scene is still in memory. However, this is not the cause. Unloading the asset bundle seems to be unloading the entire scenes contents. Based on the documentation for Unload, passing a value of false to it indicates that this behavior should not be occuring??? Am I missing something here?
public IEnumerator LoadScene()
{
WWW stream = new WWW("assetBundles/dynamicScene.unity3d");
yield return stream;
AssetBundle bundle = stream.assetBundle;
// Load a scene that was stored in the asset bundle.
Application.LoadLevelAdditive("dynamicScene");
// This will cause everything in the scene to be unloaded.
bundle.Unload(false);
}