- Home /
Question by
rock_win · Aug 11, 2013 at 05:27 PM ·
scene-loadinglevel-designunity 4.2
Old Scene still visible after Loading new
On the latest version of Unity, when I try my game, the old scene is still visible in the background and in the logs the OnGui
mehtod is still running.
I'm loading the level by:
public IEnumerator loadLevel(){
yield return new WaitForSeconds(0.35f);
Application.LoadLevel(targetLevel);
}
Unity Free-- this can be observed even on the Editor Game Mode.
As per API - the LoadLevel destroys everything of the previous scene, then why is this still present?
Comment
This would happen if you set the objects of your previous scene to DontDestroyOnLoad.
It doesn't explain the "in the background" though. Are all your objects still there in the hierarchy?