- Home /
Question by
Griffo · Dec 22, 2015 at 07:49 PM ·
progress-barprogress barprogressbar
Trying to get the progress of a loading scene in Unity 5.3.1
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
screen-shot-2015-12-22-at-194404.png
(136.8 kB)
Comment
Answer by Firedan1176 · Dec 22, 2015 at 08:03 PM
Hi @Firedan1176 .. I'm using operation.progress to debug in the print out as in the code above ..
Your answer
Follow this Question
Related Questions
Is it possible to get a smooth WebGL Progress Bar? 0 Answers
Problem with WWW.progress 3 Answers
Progress bar for player progress is backwards 1 Answer
Is it possible to prevent user from moving Slider/Scrollbar 1 Answer
progressbarimage flickering 0 Answers