Loading screen hangs at start

So I’m making a game with loading screens, and I have little doorways that you touch to go to a new scene.
Instead of directly taking you there, it instead brings you to a loading screen scene, which loads the next level using the async function.

So there’s no real hang between the loading screen and the next area scene.
However, the game DOES hang between the original area scene and the loading screen.
My loading screen is basically just one rotating sprite and a circular loading bar. Nothing complicated.
Does unloading the previous scene take up processing time the way loading the next scene does?

How can I address this problem? Is there an “async unload scene” function to go with the async load scene function?

Does this issue only happen in the editor, or does it also happen in a build? Scene loading behaves differently when run the in the editor vs a build.

2 Likes

Dang, you’re right. Apparently this only happens in the editor. I didn’t know the scene loading behaved differently.

Thanks! I’m all set then.

1 Like

Yeah I don’t know all the details, but basically in a build async scene loading occurs in the background while in the editor it appears to block the main thread. I’ve seen previous threads on this issue which go into more detail.