Hi ! When I load a new scene with the command Application.LoadLevel("Level_1");
there are 0.5/1 second that I see the background color of previous scene…why ? I thought because the Level_1 contains many sprites but there is the same problem also if into the scene there is 1 sprite…
See the video http://youtu.be/ehpbqWMj0SM You can see that when I press the spacebar I see the Level1 red background and then the Level2…why ?
anyone help me?
Are you doing anything else before the LoadLevel?
Its kinda hard to tell from the video, to me it almost looks like the image is being removed revealing the background, then loading the next scene
No I attach the project is very simple… https://drive.google.com/file/d/0BwZLwg5PbA6uOHNHczRMS0RTc3c/edit?usp=sharing as you can see when you press the Spacebar before loading the new scene you can see the red background of the previous scene …
NOTE : I use a StateMachine, if I exclude it it work fine !!
anyone help me?
EDIT: I understand the problem even if you do not know why … in practice when I insert a GUI.Button or GUI.DrawTexture or any other GUI.X into BeginState’s OnGUI there is the problem…it seems as if unity waiting to disappear that is on the screen, In fact, if instead of the codeif I insert an image directly into the scene everything works good…why?!