Search Unity

UI Idea: Make UI invisible in edit mode.

Discussion in 'UGUI & TextMesh Pro' started by elmar1028, Nov 15, 2014.

  1. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    I just thought it would be awesome if we could hide UI elements in the edit mode in order to work with other components.

    It is possible to hide the whole UI by disabling Canvas, but sometimes you can forget about it and test the game after its compilation only to find out you forgot to put Canvas back on.
     
  2. cmcpasserby

    cmcpasserby

    Joined:
    Jul 18, 2014
    Posts:
    315
    Just put it on a layer and set the visbiltiy to false
     
  3. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    ...and then set it to true before playing?

    Like I said before, I could easily disable it, but sometimes you can forget putting it back on before testing game.

    EDIT:

    I found a Canvas checkbox in "Gizmos", but it doesn't hide anything, in fact it only hides the canvas' rectangle area in scene.
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    UI stuff is already on the UI layer, so just disable that in the editor view. It's not something you have to turn back on.

    --Eric
     
    elmar1028 likes this.
  5. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    Ah! Found it. Thanks!