Search Unity

Feature Request Assigning Icons: Set Default Gizmo Visibility

Discussion in 'Editor & General Support' started by D1234567890, Mar 3, 2021.

  1. D1234567890

    D1234567890

    Joined:
    Aug 11, 2019
    Posts:
    64
    https://docs.unity3d.com/Manual/AssigningIcons.html

    I would like to use the above to assign icons to scripts without the icons being used in the scene view as this would unnecessarily clutter the scene view. This is for an asset so not being annoying is always good :^) But at the same time the icons help distinguish the scripts in the inspector and project view.

    It is possible to disable the gizmo icon for the scene view using reflection:
    https://github.com/Unity-Technologi...c3775/Editor/EditorCore/EditorUtility.cs#L572

    The above would disable the icon like the user would in the icon column of the gizmo menu: https://docs.unity3d.com/Manual/GizmosMenu.html

    But doing this using scripting will ultimately override the user's preference.

    Can this be added if it cannot be done already. Any suggestions would be appreciated too.

    Thank you!