HI,
I have an assetbundle thats loaded into a scene. What happens to it when i load a new scene ? Can i use it in that new scene without reloading it ? Does it only unload when I use assetbundle.unload ? Thanks.
HI,
I have an assetbundle thats loaded into a scene. What happens to it when i load a new scene ? Can i use it in that new scene without reloading it ? Does it only unload when I use assetbundle.unload ? Thanks.
No, unless you call DontDestroyOnLoad() function on your gameObject like this:
function Awake () {
DontDestroyOnLoad (gameObject);
}
or on your assetBundle loader.
ok thats strange, in my new scene i try to download the same bundle and it says a bundle with the same contents already excists and i don't call DontDestroyOnLoad() anywhere.
– appelsyou can load each asset bundle once before Unload it. If you want to unload it, you should manually call Unload() function. loading new scenes delete your assetBundle Objects but keep it in memory.if your loader gameObject get destroyed, the connection to your assetBundle will be destroyed , and you can not Unload it, so you can not load it in another level. hope that helps
– AliAzin