- Home /
Loadingscreen and play Level when initialized completely
Hey, I don't understand this method: Application.LoadLevelAsync
With this method, I am able to load a level while playing another level, right? But how do I get the status, if this level is loaded? And how do I switch into this Level?
Another issue I have is, that my current level (which I want to load inside a "level loader") starts before all of my objects are initialized completely.
Example: My scene plays an animation and a sound at the beginning - but the animation is jerking around, the sound sounds fine.
Is it possible to load and initialize the level completely before playing anything of this things (is there a method like "LevelIsCompletelyLoaded" for example)?
Greetings, Bregnar.
Answer by Adamcbrz · Aug 26, 2012 at 08:52 PM
You need to look into the following methods:
Application.LoadLevelAsync AsyncOperation - which includes progress and isDone. Object.DontDestroyOnLoad
So you will have to use the DontDestoryOnLoad because as soon as all the elments of the new seen are loaded it will replace the current scene. You can track progress on the new seen loading with AsyncOperation.
Your answer
Follow this Question
Related Questions
Reloading Level problem 0 Answers
Method in Start() not running, but in Update(), why? 2 Answers
c# check for destroyed objects to load next scene 1 Answer
How to transition from Load to scene ? 1 Answer
Android load/unload times 0 Answers