- Home /
Animated load screen. What is the command to check if a scene is being loaded or the game is transitioning between scenes?
like if (loading any scene) { do animation "animation"; }
Answer by BMayne · Jan 04, 2015 at 12:02 AM
Hey there,
If you want to load a level and does some animations you have to use LoadlevelAsync or the whole game will freeze while it loads. Keep in mind this is a Unity Pro feature and can't be done with the free version.
AsyncOperation async = Application.LoadLevelAsync("Level Name");
async.progress <--- "from 0 to 1.0"
Also they animation will not play smoothly. Depending on what is loading it may play faster or slower.
Answer by DaDonik · Jan 03, 2015 at 11:03 PM
You have to call Application.LoadLevel to load a new scene, which means you already know when that scene is being loaded, because it's you who told Unity to load it...
Your answer
Follow this Question
Related Questions
Unity fit for sandbox MMO? 1 Answer
Photon Unity Creating Reserved Slots 1 Answer
Data Visualization 1 Answer
How do you check what aspect ratio the player is using to play the game? 1 Answer