Quantcast
Channel: Questions in topic: "loadlevelasync"
Viewing all articles
Browse latest Browse all 194

After loadlevelasync, will AsyncOperation be isDone at least one frame?

$
0
0
I am wondering, if I use SceneManager.LoadLevelAsync, and check for AsyncOperation.isDone, can I be sure that isDone will be true at least one frame before the current scene gameObjects are destroyed and the new scene is effectively loaded? Or at least, can I be sure that there will be at least one frame with let's say, a AsyncOperation.progress of 0.9 or more? Even for example in case of very performant devices. I would like to execute something just before the current gameObjects of the current scene are destroyed, and if possible, without using DontDestroyOnLoad. And AsyncOperation.allowSceneActivation is true. Thank you!

Viewing all articles
Browse latest Browse all 194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>