Pre-loading scene and display it only when I want
Hello, I have a scene that is a bit heavy and I want to start loading it as soon as possible to cut loading time. I have 2 initial Scenes(0,1) that the user must dismiss before reaching a possible Loading Scene(2) if the heavy Scene(3) isn't done yet.
I've been trying to use SceneManager.LoadSceneAsync ("Scene3")
with async.allowSceneActivation = false
so it doesn't jump to the heavy Scene(3) while in the middle of the initial Scenes(0,1). On the loading Scene(2) I use if (!async.isDone){}else{async.allowSceneActivation = true;}
.
My problem is that after doing this the Scene transition takes really a long time as if it wasn't loaded. I assume that the Start() function is executed on load and not when the scene is activated, am I wrong? Is there a better way to do this?
As I recall, setting allowSceneActivation to false stops the scene loading at 90%
Is it possible that it's simply this last 10% taking a long time to load?
In that case those 10% take almost the same time and some times more time to load than the other 90% :/