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