Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug (IN-29177) Color tag with "grey" in GUI.Label does not work

Discussion in '2023.1 Beta' started by Kichang-Kim, Jan 18, 2023.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,008
    Hi. I found that rich text with "color=grey" does not work well in Unity 2023.1.0a25.

    Here is sample code:

    Code (CSharp):
    1. // Work on both Unity 2022.2.x and 2023.1.x
    2. GUI.Label(new Rect(0, 0, 400, 26), "<color=#808080ff>THIS SHOULD BE GREY</color>", this.style);
    3. // Work on 2022.2.x, but does not work on 2023.1
    4. GUI.Label(new Rect(0, 26, 400, 26), "<color=grey>THIS ALSO SHOULD BE GREY</color>", this.style);
    Reported as IN-29177.
     
  2. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,008