Exploring the markup format
HTML-like markup language can be included within the text field of the Text or TextMeshPro - Text (UI) components to format the text. This markup format is HTML-like in that it uses angle bracket tags around the text that is to be formatted. The tags use the <tag>the text you wish to format</tag>
format, where you replace tag
with the appropriate tag. These tags can be nested, just as they can in HTML.
To use markup format on a Text object, you must first select the Rich Text property within the Text component. By default, it works within a TextMeshPro object.
This formatting allows you to change the font style, font color, and font size. The following chart lists the tags necessary to perform the specified formatting:
Format |
Tag |
|
|
|
|