Rasagar/Library/PackageCache/com.unity.ugui/Documentation~/TextMeshPro/RichTextSubSuper.md

15 lines
445 B
Markdown
Raw Normal View History

2024-08-26 13:07:20 -07:00
# Subscript and Superscript
Use the `<sub>` and `<sup>` tags to render text as superscript or subscript. This is often used in scientific notation and ordinal numbering (1st, 2nd, etc.).
Set the offset and size for sub- and superscript in the [Font Asset](FontAssetsProperties.md#FaceInfo).
**Example:**
```
We have 1m<sup>3</sup> of H<sub>2</sub>O.
```
![Example image](../images/TMP_RichTextSubSuper.png)<br/>
_Subscript and superscript_