Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Change color of text in hierarchy view

Discussion in 'Scripting' started by Mish, Dec 16, 2015.

  1. Mish

    Mish

    Joined:
    Apr 23, 2010
    Posts:
    96
    I want to be able to change the color of GameObject names in the hierarchy view in the editor.

    I can do some color changes through the delegate:

    Code (CSharp):
    1. EditorApplication.hierarchyWindowItemOnGUI
    But cant get hold of the actual label which contains the text. Is there a way?
     
  2. Pundek

    Pundek

    Joined:
    May 17, 2013
    Posts:
    10
    nobody?
     
  3. dylanHart

    dylanHart

    Joined:
    Sep 11, 2015
    Posts:
    3
    I'd love to know how to do this as well. I'm currently placing a new label on top of the old one ...
     
  4. sumit47

    sumit47

    Joined:
    Jan 11, 2017
    Posts:
    7
    Hi Mish,
    How you did it? Can you please help me out by giving me whole script that contains only code for changing the color??
    thanks in advance.