Search Unity

[RELEASED - FREE] Hierarchy Icon

Discussion in 'Assets and Asset Store' started by COBO1990, Mar 9, 2018.

  1. COBO1990

    COBO1990

    Joined:
    Aug 15, 2017
    Posts:
    12


    DOWNLOAD LINK
    Asset Store

    DESCRIPTION
    CGHierarchyIcons is a simple package used to show an icon at the right of the GameObjects' names in the HierarchyView.

    It is composed of a simple script that is added to GameObjects and through an editor script you can select the icon and add an optional tooltip.

    You can select as icon all the textures Unity can reference, including yours in the ProjectView.

    NOTES
    - The properties of the HierarchyIcon script are only compiled in the Unity Editor.
    - After you build your project, all instances of the HierarchyIcon attached to game objects are destroyed from the scenes since they are unuseless on build.
     
    Last edited: Apr 2, 2020
    Roger-W, Hoorza, WILEz1975 and 2 others like this.
  2. CG_Artist

    CG_Artist

    Joined:
    Apr 28, 2017
    Posts:
    3
    why don't you add this to the Asset Store?
     
    Hoorza likes this.
  3. MrBouiss

    MrBouiss

    Joined:
    Jul 2, 2015
    Posts:
    1
    Thank you for this very useful tool, you saved my eyes! :)
     
  4. FlightFight

    FlightFight

    Joined:
    May 29, 2017
    Posts:
    27
    Awesome! Thank you!
     
  5. COBO1990

    COBO1990

    Joined:
    Aug 15, 2017
    Posts:
    12
    In a moment it will be there!!!
     
  6. COBO1990

    COBO1990

    Joined:
    Aug 15, 2017
    Posts:
    12
    Finally the package was accepted and is already live in the Asset Store. The download link was updated.
     
  7. COBO1990

    COBO1990

    Joined:
    Aug 15, 2017
    Posts:
    12
    The version 1.0.1 with a small bug fix was uploaded!!!!!!! :)
     
  8. COBO1990

    COBO1990

    Joined:
    Aug 15, 2017
    Posts:
    12
    Hi!!! ;)

    The version 1.0.1 was updated.
    Now we can select the Direction property place the icons also from left to right.

    Icons at the right.png
    HierchyIconScript.png

    Enjoy the package!!!!
     
  9. Zebbi

    Zebbi

    Joined:
    Jan 17, 2017
    Posts:
    521
    This is an awesome tool, thank you!! Is it possible so that clicking on the icon in hierarchy won't bring up a menu to select an icon?
     
  10. Jamez0r

    Jamez0r

    Joined:
    Jul 29, 2019
    Posts:
    206
    Just got this asset - really nice, easy to use, and free! Thanks a lot @COBO1990 !

    To do this, open the CGHierarchyIcons / Editor / UnityCallbacks / ShowIconOnHierarchyView.cs file, and comment out this section at the bottom :

    Code (CSharp):
    1. // and draw a button for change the icon and display the tooltip
    2.                 if (GUI.Button(rect, new GUIContent(string.Empty, hierarchyIcon.tooltip), EditorStyles.label))
    3.                     PopupWindow.Show(rect, new PickIconWindow(hierarchyIcon));
     
    jdmozo and Zebbi like this.
  11. Zebbi

    Zebbi

    Joined:
    Jan 17, 2017
    Posts:
    521
    Thanks, I'll try that!

    Also, comment out the cursor change:


    //EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link);
     
    Last edited: Feb 1, 2021
    IndieFist likes this.
  12. jackcubebuilder

    jackcubebuilder

    Joined:
    May 27, 2021
    Posts:
    3
    Wery thanks!