when I use the load level action in a webplayer it tries to open the level before it's fully loaded, there seems to be no check for can level be streamed
can you please update it with something like like
// Check if level at index 1 can be loaded.
// If it can be loaded then load it.
function Update() {
if (Application.CanStreamedLevelBeLoaded(1)) {
Application.LoadLevel(1);
}
}
or we could use a GetStreamProgressForLevel action that fires of an event when a certain percentage is reached.
like:
function Update() {
if(Application.GetStreamProgressForLevel(1) == 1) {
guiText.text = "Level at index 1 has been fully streamed!";
} else {
percentageLoaded = Application.GetStreamProgressForLevel(1) * 100;
guiText.text = percentageLoaded.ToString();
}
}
thanks in advance