Oct 8, 2013

[Unity3d] How to change scenes without interrupting or pausing the game.

GetStreamProgressForLevel returns progression of the loading. 
You can show the progress bar using this  function. 
If you want to change scenes without interruption, do like this. 

if(Application.GetStreamProgressForLevel("mainui") == 1)
{    
        Application.LoadLevel("mainui");
}  

No comments:

Post a Comment