docs.unity3d.com
    Show / Hide Table of Contents

    Text Color

    There are two ways to change text color with color tags:

    • Use named colors, as in <color="colorName">

      The following color names are supported: black, blue, green, orange, purple, red, white, and yellow.

    • Use hexadecimal values, as in <color=#FFFFFF> or <color=#FFFFFFFF> if you also want to define the alpha value.

    If you apply successive <color> tags in the same text, the last one takes precedence over the others until you either add another <color>tage or use a closing </color> tag to end the current color's scope.

    Example:

    <color="red">Red <color=#005500>Dark Green <#0000FF>Blue <color=#FF000088>Semitransparent Red
    


    Successive color tags

    <color="red">Red, <color="blue">Blue,</color> and red again.
    


    Closing color tag

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023