Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

[SOLVED] Canvas Disappears in Scene That is Loaded...

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by Hero101, Jul 15, 2016.

  1. Hero101

    Hero101

    Joined:
    Jul 14, 2015
    Posts:
    149
    Hey guys. I have something weird going on. I have two scenes in my game currently: A playable level in the game and a level selection scene. When I test my level selection scene in Unity every works - it's just a Main Camera, EventSystem, and a Canvas that displays UI elements.

    The problem is that when I load the level selection scene from my other scene the whole scene is blank (default camera blue background) because my canvas is missing from the scene (I can't see it in the hierarchy).

    Anyone ever encounter this before? I'm not using any code whatsoever to destroy the canvas (don't even have any code set up currently to pick a level with the UI in the level selection scene).

    Also, if you think this post would be better off in another forum let me know and I'll move it there.
     
  2. Hero101

    Hero101

    Joined:
    Jul 14, 2015
    Posts:
    149
    My bad... apparently I had a script with DontDestroyOnLoad in my first scene but had a duplicate of that script in the level selection scene that was causing the issue...
     
  3. gpapoyan95

    gpapoyan95

    Joined:
    Jun 10, 2017
    Posts:
    4
    thank god! :D :D :D