Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug UI Toolkit - Label with rich text tag <color> does not work

Discussion in 'Editor & General Support' started by Lemare, Sep 22, 2022.

  1. Lemare

    Lemare

    Joined:
    Dec 17, 2017
    Posts:
    2
    Hey,

    I'm trying to add a text color to specific parts of the text inside a Label, but the
    <color>
    tag doesn't seem to work. I've tried others like <b> and they work fine. Is this a known bug?

    upload_2022-9-22_11-30-49.png
     
  2. bustedbunny2

    bustedbunny2

    Joined:
    Oct 27, 2021
    Posts:
    25
    I have the same problem. Color tag does not work on my end.
    2022.2.2f
     
  3. RedaunAmarien

    RedaunAmarien

    Joined:
    Apr 15, 2018
    Posts:
    1
    Same here, except sprites also do not seem to be working (they don't even register as a tag, whereas color registers but doesn't have an effect). All other tags I've tried are working fine.

    Screenshot 2023-04-07 185655.png
     
  4. punkkaridude

    punkkaridude

    Joined:
    Mar 4, 2021
    Posts:
    1
    I found out that if you use HEX color codes, all the letters must be uppercase e.g. "#40A0FE".