- Home /
Question by
jef.c · Aug 22, 2011 at 10:07 PM ·
webplayerassetbundleloadlevelstreaming
Webplayer displays garbage on Application.LoadLevel
I'm loading a streamed scene, but during the scene transition, the Unity webplayer displays all sorts of garbage until the scene loads (a distorted/flipped/flickering image, icons from the dock/taskbar that aren't even part of the game). Before the LoadLevel is called, the camera and all game objects in the scene are 100% stationary.
This is how the new scene is being loaded:
IEnumerator LoadNext() {
...
while( !Application.CanStreamedLevelBeLoaded( PlayerPrefs.GetString( "lvl" ) ) ) {
yield return null;
}
Application.LoadLevel(PlayerPrefs.GetString("lvl"));
}
Once the scene loads, there are no more oddities that are displayed. As far as I can tell, this is the only transition that has such an effect.
Has anyone else encountered an issue like this or know of a solution?
Comment