- Home /
CSharp Pre-Loader, how get Load status?
I work on a pre-loader that will play an animation during charging. I see the method to load but I can not find anything to retrieve the status of the load?
I need to say:
-if the load is not complete => play the movie
-if the load is complete => the image appears
Answer by Borgo · Jul 11, 2011 at 01:41 PM
The application class have all that you need:
http://unity3d.com/support/documentation/ScriptReference/Application.html
Application.GetStreamProgressForLevel, its return a number between 0 and 1, when 1 is completly loaded, so, you can use this to make e.g. progress bars.
http://unity3d.com/support/documentation/ScriptReference/Application.GetStreamProgressForLevel.html
Thx Application.GetStreamProgressForLevel is exactly what i need. Sorry, i must look better :)
where is the preloader for standalone, free unity version here?
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Resources.Load(), TextAsset, file extension 1 Answer
How to check if loading from another level or game start? 1 Answer
PlayerPrefs Question 0 Answers
Loading interface 0 Answers