- Home /
Last frame of last scene not cleared?
Hi folks,
I have 2 scenes in my project, say "MenuScene" and "PlayScene".
When I try to switch from MenuScene to PlayScene by Application.LoadLevel("PlayScene"), the MenuScene remains in background of the PlayScene. However, the background MenuScene goes away if I change windows size or go to full screen.
The MenuScene is mostly built with UI.
Any ideas how to fix this? Please guide me.
Answer by PAHeartBeat · Jul 23, 2015 at 10:38 AM
Hi,
in most case of camera still shows last frame of the last scene, in that isuse cause by "Clear Flag" option of camera property, so pelease check all camera depth of scene you load and the camera has lowest value as depth it must one has one of these option as Clear Flag (Skybox or Solid Color)
You got it. I only had one camera in the scene its view port rect is 50% of screen, so the rest of screen was rendering "void". That caused my problem.
Answer by steunity2 · Jul 23, 2015 at 07:03 AM
I temporarily solved this problem by resetting resolution with the same window size before load new scene.
Application.LoadLevel ("PlayScene");
Screen.SetResolution (Screen.width, Screen.height, Screen.fullScreen);
I have the same problem and Screen.SetResolution does not help. How did you actually manage to resolve it?
Hi @datagreed,
before suggesting any solution, can you tell us about you have a single camera or multiple?
Your answer
Follow this Question
Related Questions
UI doesn't render after scene reload. 0 Answers
[C#] Unity asks for a } for a reason I don't know ( '}' expected ) 1 Answer
How to make buttons have sound when it is highlighted and clicked? 0 Answers
how can i access multiple sprites using a single variable? 1 Answer
Inputfield text to String variable 1 Answer