Hi,
I'm trying to get the progress of a loading scene in Unity 5.3.1, below is the snippet of code I'm using but all the progress prints out is in the picture below .. The scene loads and the line "**load done**" prints out fine.
How can I read the progress from 0 to 1?
Thanks.
var operation : AsyncOperation = SceneManager.LoadSceneAsync(_scene, LoadSceneMode.Single);
while(!operation.isDone)
{
k++;
print("k : " + k + " .... loading progress : " + operation.progress);
yield;
}
print("load done");
[1]: /storage/temp/60502-screen-shot-2015-12-22-at-194404.png
↧