Search Unity

white flash at LoadLevel()

Discussion in 'Editor & General Support' started by RockHound, Feb 28, 2008.

  1. RockHound

    RockHound

    Joined:
    Apr 14, 2006
    Posts:
    132
    When I call Application.LoadLevel(), the screen goes all white for one frame, then returns to normal rendering. Has anyone seen this before?

    I encountered this problem a year ago or so, and I fixed it back then. But I recently began reorganizing our game code, and the problem has re-appeared. I just don't remember what I did before to fix it!

    Could the problem be that I need a camera in each level, rather than having one camera that has been 'DontDestroy'ed? That's one change I recently made.

    My primary question is: Has anyone encountered this problem with their game, and if so, what did you do to fix it?

    Thanks for any input!
     
  2. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    I don't know how to fix the problem but you can have one camera with a don't-destroy... script (i have that in my game).
     
  3. RockHound

    RockHound

    Joined:
    Apr 14, 2006
    Posts:
    132
    Thanks sturestone, it helps to know that.
     
  4. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Rockhound, as an aside, do you have a multiple monitor setup?
    AC
     
  5. RockHound

    RockHound

    Joined:
    Apr 14, 2006
    Posts:
    132
    No, we don't have multiple monitors.