Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Feedback Unity Gizmo Show/Hide feedback please!

Discussion in 'Editor & General Support' started by willgoldstone, Jun 9, 2020.

?

Do you like and use the Component collapse to Show/Hide gizmos?

Poll closed Jun 16, 2020.
  1. Yes I use component collapse to show and hide gizmos

    12 vote(s)
    52.2%
  2. I don't use it, and its not useful to me

    11 vote(s)
    47.8%
  1. willgoldstone

    willgoldstone

    Unity Technologies

    Joined:
    Oct 2, 2006
    Posts:
    772
    Hey folks,

    Quick question - regarding showing and hiding of Gizmos in the scene view, we'd like your feedback on the component collapse functionality we have please, see this video -



    We will run this poll for a week to gauge general feeling - this is part of ongoing work to the scene view, can't say more without biasing the feedback!

    Happy to hear any other related feedback in this thread of course :)

    Cheers

    Will
     
    Peter77 likes this.
  2. cirocontinisio

    cirocontinisio

    Unity Technologies

    Joined:
    Jun 20, 2016
    Posts:
    45
    It's a really useful feature, and I like the fact the two menus are linked.
    Gives you double convenience:
    You can turn off that one component which is on the object you're inspecting, from the Inspector.
    Or, you can turn off a bunch from the Scene view drop-down, to do some cleaning.
     
  3. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    82
    I use both and don't like the idea of linking them together. For example I don't like to see camera gizmo, because it's always at the center of the screen and hiding other objects, but I use the camera's inspector pretty often. I also like to see the colliders' gizmos in the scene view, but almost never use the inspector for them.

    When I started using Unity it was pretty confusing that sometimes I wouldn't see the gizmos even though they were tuned on in the gizmos list. Even today, I sometimes can't figure out why I don't see gizmos and then I remember that I have to un-collapse the inspector of that component to see them. So my vote would be to not toggle the gizmos when collapsing the inspector to avoid confusion.
     
  4. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    82
    To clarify, I use the collapsing to manage the info shown on the inspector when I have a lot of components; turn off some that I don't need at the moment to have space for other ones. And then I use the gizmos checklist to turn on and off the gizmos that are important to me right now to see the structure of the scene. We even add a lot of our own gizmos to help with the "viewing structure of the scene", like showing the objects' path or gameplay/interaction areas.

    The best feature that recently got added was the option to completely toggle the gizmos on and off together which I use pretty often, because we just have a lot of custom gizmos we show for unselected "manager objects"; so thanks for that :).
     
    Flavelius likes this.
  5. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    82
    On the other hand, if you completely link these together then at least there will be less confusion as I would check the gizmo list and see that the gizmo I'm searching for is unchecked. It would just be annoying for my current workflow.

    If you decide to go either way, I would like to have a public API for toggling them. Right now it seems to be private and needing some hacks to make it work:
    https://answers.unity.com/questions/851470/how-to-hide-gizmos-by-script.html
     
  6. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    501
    Personally i never use the dropdown because it doesnt scale.

    upload_2020-6-9_14-16-4.png
    upload_2020-6-9_14-16-18.png
    upload_2020-6-9_14-16-38.png
    upload_2020-6-9_14-16-55.png

    I think you get the point ;) An option to disable or enable all of them would be greatly appreciated, they can be a performance issue and turning them all off, and then enabling specific ones which you need is a fix for that. We had to make a custom editor tool just for this.
     
  7. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    645
    I second @TJHeuvel-net . Improve that dropdown! Currently the inspector open/close is the only viable option for showing and hiding Gizmos, the dropdown needs
    a) search
    b) a way to pin things or have recently interacted with ones at the top.
    or c) categories based on namespaces like most other things in Unity where lists become long

    To clarify: for me the collapsing does not necessarily need to be connected to Gizmo state, it's a learned behaviour. However, if you want to get rid of it, you should replace it with something that is at least as fast
    (and the current dropdown definitely isn't, as above screenshots demonstrate - it looks like that for every non-trivial project).
     
    Last edited: Jun 9, 2020
    firstuser and oxysofts like this.
  8. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    3,190
    First: Usually posts like this are pinned/stickied?

    I think that conflating these two things (collapsing a component with toggling how all instances of that component draw their gizmos) is a bad behavior, and almost never what I want. This also extends to the fact that if I collapse "Component X" on one object, it collapses the component on all objects. That's also almost never what I want.

    I want to collapse a component on an object, on a case by case basic, because I want to reclaim some space in the inspector window. But if I collapse the "Box Collider" component of this one object, now I can't see any box collider gizmos, and I all Box Collider components get collapsed along with it. Let me just collapse a component, without changing the gizmo visibility, and without collapsing all instances of that component on all objects along with it.

    One bit of missing functionality that annoys me every time I update to a new version of Unity, or start a new project, is that there's no Hide/Show button to toggle the icons in the Gizmos dropdown:

    upload_2020-6-9_11-49-1.png

    Where I've circled, there should be a hide/show all, just like the check/uncheck all beside it. Every new project, or UNity engine update, I have to go in here and click a hundred icons that got enabled which I don't want to see. Usually I want them all disabled except for a small number I would prefer to turn back on one at a time.
     
  9. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    4,931
    I hate this feature with a passion.

    Good MonoBehaviour design calls for having objects consist of many MonoBehaviours that does different things. In our current game, the player's prefab has 21 components attached to it:
    upload_2020-6-9_16-49-12.png

    In order to find anything in that list, I have to keep them collapsed, and then expand the one I need to work on. Otherwise it's far too much scrolling. The inspector's performance is also piss poor if all of those are folded out, as imgui just doesn't scale very well past a certain number of components, so I kinda want to keep them collapsed for that as well.

    This all means that I run into the situation where I wonder where my gizmos went - turns out they're gone because I minimized the component to work on a completely different component.

    There's also a couple of other instances of the flip side. There's some gizmos I don't want to see, so I go in and collapse them, but then I need to edit a component of that type and suddenly the gizmo is back.

    So I'd very much like them to be two different toggles, because I often want one to be toggled but not the other.
     
  10. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    5,450
    @willgoldstone I think it would be a good idea to stick these kind of "official" voting posts to the top. More people would find it.
     
  11. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    346
    I voted against the feature.

    I was initially seduced by it because I hate using the guizmo dropdown but thinking about it, that solution has the issues already mentioned and wont solve the problem.

    If you have half the asset store on your project like I do, the dropdown takes seconds to deploy and is full of random stuff that don't even have icons. So I barely use it and get inconvenienced by icons. If I could have immediate access to the most common component I want to show/hide in the scene view, that would solve everything without risking creating other problems.
     
  12. Zer0Cool

    Zer0Cool

    Joined:
    Oct 24, 2014
    Posts:
    141
    Should be better an icon in the main view menu and not part of expanding or shrinking components, but its only my opinion.
     
  13. teutonicus

    teutonicus

    Joined:
    Jul 4, 2012
    Posts:
    50
    Using Unity daily since 2012 and had no idea that component collapse affected gizmo visibility.
    The Gizmo dropdown is really painful to use.
     
    Zer0Cool likes this.
  14. Thermos

    Thermos

    Joined:
    Feb 23, 2015
    Posts:
    93
    Gizmos and collapsing should be different toggle on inspector.
    Also the huge gizmos list should be removed or move to preference settings...It takes 10+ seconds to open that list in big project.....
     
  15. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    82
    I second this a 100%. I also disable all of the gizmos every time I install a new version of Unity. This is especially bad in UI, where every single one of the component have its won icon and make the whole scene view impossible to use until you disable them all.
     
  16. MechaWolf99

    MechaWolf99

    Joined:
    Aug 22, 2017
    Posts:
    52
    I will echo what others have said. Almost any time I collapse a component, it is because I want to have more room/less noise in the inspector. But I still want to see the gizmos. Bit of a side note, I really dislike that component collapsing is global, and not per object!

    I almost always disable all gizmos except a select few. The drop down also gets extremely cluttered, full, and slow in any slightly large project. And it doesn't have a 'toggle all' button for the icons, or a search field which is very needed. So I almost never mess with toggling on/off the ones I want. I just always have them all toggled off, and just toggle them all on when I need one.
    I also never want the component icons visible in the scene. With maybe a few exceptions.

    In short, I personally would like the following:
    • Decouple component collapse from show/hide gizmo.
    • Add all/none button(s) to the gizmos drop down. Maybe like the post processing.
    • Add a search field to the gizmos drop down.
    • Slightly unrelated, make component collapsing be per object and not global.

    Thanks for taking the time to get feedback and address this!
     
  17. indieDoroid

    indieDoroid

    Joined:
    Jan 25, 2016
    Posts:
    300
    I voted FOR it because I don't know a better alternative.
    Collapsing components is useful when I don't want Box Colliders etc meshes causing visual chaos.
     

    Attached Files:

  18. indieDoroid

    indieDoroid

    Joined:
    Jan 25, 2016
    Posts:
    300
    I actually am thankful it is GLOBAL lol ... Unity good luck with this one! :p
     
  19. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    346
    The problem is, this is already possible through the dropdown menu. They should fix it instead of creating a new solution that will create new issues.
     
    indieDoroid likes this.
  20. AntonPetrov

    AntonPetrov

    Joined:
    Dec 27, 2013
    Posts:
    16
    1. Using component collapsing for hiding gizmos is a mixing of concerns. The desire to show/hide gizmo and a desire to expand/collapse component do not necessary match each other.

    Just make that Gizmos drop down had a subset of gizmos relevant to current selection.I mean if I am editing an object or a prefab then most likely I would like to hide/show gizmos for this kind of objects.

    2. But changing global settings must be there too. May be you should orginize large dropdown into a tree using some path notation with slashes and a custom attribute for OnDrawGizmos callbacks to specify this path?
     
  21. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    750
    Please stick to the separation of concerns. ;)

    Showing gizmos in the scene view is one thing, expanding and collapsing components in the inspector a totally different one. After getting used to it, we learned to live with it, but it's quite confusing for beginners in my opinion. Expanding and collapsing in the inspector is generally ok, but it would benefit from a expand all, collapse all feature. The scene view gizmos dropdown is almost unusable in larger projects, simply too many items and visually not super clear (icon + checkbox have different functionality that needs to be understood).
     
  22. Senanoko

    Senanoko

    Joined:
    Mar 21, 2020
    Posts:
    2
    I do like this feature, but it's little hard to use.

    There are too many check boxes which are sorted by name. But I just use some of them.

    If Unity let us mark the favorite check boxes and sort it to the first, it will be a significant improvement in workflow.
     
    mahdi_jeddi likes this.
  23. firstuser

    firstuser

    Joined:
    May 5, 2016
    Posts:
    28
    +1 vote for dropdown search, it's make or break for overall gizmo usage in some cases.
     
    mahdi_jeddi likes this.
unityunity