docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Supported Rich Text Tags

    The following table is a quick reference of supported rich text tags. For details, see the main pages for specific tags.

    Tag: Description: Notes:
    <align> Changes the text's horizontal alignment.
    <allcaps> Converts text to uppercase before rendering. Functionally identical to <uppercase>.
    <alpha> Changes text opacity.
    <b> Renders text in boldface.
    <br> Forces a line break in text.
    <color> Changes text color or color and opacity.
    <cspace> Changes spacing between characters.
    <font> Changes text font and, optionally, material.
    <font-weight> Changes the text's font weight to any of the weights defined in the font Asset.
    <gradient> Applies a gradient preset to text.
    <i> Renders text in italics.
    <indent> Indents all text between the tag and the next hard line break.
    <line-height> Modifies the line height relative to the default line height specified in the font Asset.
    <line-indent> Indents the first line after every hard line break. New lines created by word-wrapping are not indented.
    <link> Specifies a link ID for a text segment.
    <lowercase> Converts text to lowercase before rendering.
    <margin> Gives the text horizontal margins. You can set margins for both sides together or each side individually
    <mark> Highlights the text with a colored overlay. The overlay must be translucent (alpha less than 1) for the text to show through.
    <mspace> Renders the text as monospace.
    <nobr> Keeps a segment of text together.
    <noparse> Prevents parsing of text that TextMesh Pro would normally interpret as rich text tags.
    <page> Adds a page break to the text. The text's Overflow mode must be set to Page for page breaks to work.
    <pos> Sets the horizontal caret position on the current line.
    <rotate> Rotates each character about its center.
    <s> Renders a line across the text.
    <size> Adjusts the font size for a specified portion of the text.
    <smallcaps> Converts text to uppercase before rendering.
    <space> Adds a horizontal offset between itself and the rest of the text.
    <sprite> Adds a sprite to the text. By default, TextMesh Pro looks in the default sprite assets, but you can use tag attributes to retrieve sprites from other assets.
    <strikethrough> Draws a line slightly above the baseline so it crosses out the text.
    <style> Applies a custom style to the text.
    <sub> Converts the text to subscript.
    <sup> Converts the test to superscript.
    <u> Draws a line slightly below the baseline to underline the text.
    <uppercase> Converts text to uppercase before rendering. Functionally identical to <allcaps>.
    <voffset> Gives the baseline a vertical offset.
    <width> Changes the horizontal size of text area.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)