- Home /
Progress of loading level
Hi, is somebody know how i can make progress bar i mean really progress bar, that will make itself as long as the progress of loading level is? I want it to appear when next level start loading. It can be in JS or C#.
Thanks in advance and sorry for my english.
Comment
Answer by aliakbo · Feb 19, 2013 at 08:40 PM
This is possible if you load your level a-syncronous and change your slider acording to the progress of the a-syncronous operation.
A sample code would look like something like this
IEnumerator NewGame()
{
AsyncOperation async = Application.LoadLevelAsync(1);
while (!async.isDone)
{
levelProgressBar.sliderValue = async.progress;
yield return null;
}
}
Your answer
Follow this Question
Related Questions
Where is my HP Bar? 3 Answers
How to have the scene load after a few seconds 1 Answer
[SOLVED]Static Loading screen help 0 Answers
Loading Bar / LoadLevelAsync 3 Answers
progress bar 1 Answer