- Home /
Question by
nogue2k · Jul 10, 2012 at 06:51 PM ·
loadlevelasyncloadlevelasync
Loading a level and waiting for an input.
Trying to load a new scene but dont show it right away.
Like a loader that waits for an input when its over.
i'm using
private bool carregar = false;
IEnumerator LoadFase()
{
loadChallenge = Application.LoadLevelAsync("___Desafio2");
while (carregar == false)
{
yield return 0;
}
}
but its ignoring the yield return 0; and loading the scene anyway.
Comment
Actually it doesn't matter how his function is named since he is probably calling it manually anyway.
Best Answer
Answer by delstrega · Jul 10, 2012 at 06:55 PM
From the looks of it, it's not really possible: http://answers.unity3d.com/questions/137261/loading-level-async-without-switching-the-level-im.html
The only thing you can do is hide the scene behind a picture or something and reveal it, once the input occurs.