Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Scene Overlap

Discussion in 'Editor & General Support' started by ShadowManes, Jul 25, 2016.

  1. ShadowManes

    ShadowManes

    Joined:
    May 19, 2015
    Posts:
    6
    I'm having a problem in a project I am currently working on where scenes seem to be overlapping. I built the scenes in a 16:9 resolution and they work without a problem but in any other resolution I get what looks like scenes overlapping (as scene in the pictures below).
    UnitySceneRight.PNG
    UnityScene.PNG
    I started by thinking maybe my scene change code was wrong and switched out my code from SceneManager.LoadScene("SceneName"); to SceneManager.LoadScene("SceneName", LoadSceneMode.Single); and nothing changed. This is also the first time I managed to recreate this inside of the editor. Usually it occurs during builds.

    I'm wondering if anyone else has had a similar problem or if anyone may have any idea as to how I fix this.

    Thanks

    *Edit: Since posting this I have tried jumping back to Application.LoadLevel and even trying to use SceneManager.UnloadScene. So far these things have not fixed my problem
     
    Last edited: Jul 25, 2016
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    What are your camera clear flags? Do you have anything set to "DontDestroyOnLoad"? Could you screenshot your hierarchy while the problem is occurring?
     
    ShadowManes likes this.
  3. ShadowManes

    ShadowManes

    Joined:
    May 19, 2015
    Posts:
    6
    This actually was the problem. One of the camera flags had a depth only setting. Wasn't aware that was a thing until today