- Home /
Alternative for isLoadingLevel on first loaded scene
Hi, I was using Application.isLoadingLevel on my splashscreen scene to prevent animations from starting out before Unity finished loading everything and properly transitioned to my very first scene. Without it it was really noticeable that Unity was starting this animation way earlier then it was actually able to render and display the scene contents.
Considering that this is now deprecated how are we supposed to know that our very first scene has finished loading?
Answer by callen · Dec 28, 2015 at 07:40 PM
I haven't gotten too far into the new SceneManager stuff, but from the docs I'd suspect you would just do this:
SceneManager.GetActiveScene().isLoaded;
See SceneManager class and Scene class.
This seems like a good solution but sadly does not work on iOS. For some reason the game start running the first scene for a couple of frames while the Unity Splash Screen is still showing so if there is an animation playing it will almost never play from the start. Testing on a standalone build and on Android this at least seems to be working as expected, so I think it is at least isolated to an iOS problem.
Your answer
Follow this Question
Related Questions
scene loader issue 0 Answers
How to make a loading screen? 2 Answers
Loadingscreen and play Level when initialized completely 1 Answer
LoadSceneOnClicks.LoadAsynchronously(int)': not all code paths return a value 1 Answer
How do I change the SteamVR transition screen that appears when you are changing applications 0 Answers