like if (loading any scene) { do animation “animation”; }
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.
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…