Class TMP_Character
Important
This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.
A basic element of text.
Inherited Members
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public class TMP_Character : TMP_TextElement
Constructors
TMP_Character()
Default constructor.
Declaration
public TMP_Character()
TMP_Character(uint, TMP_FontAsset, Glyph)
Constructor for new character
Declaration
public TMP_Character(uint unicode, TMP_FontAsset fontAsset, Glyph glyph)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | unicode | Unicode value. |
| TMP_FontAsset | fontAsset | The font asset to which this character belongs. |
| Glyph | glyph | Glyph |
TMP_Character(uint, Glyph)
Constructor for new character
Declaration
public TMP_Character(uint unicode, Glyph glyph)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | unicode | Unicode value. |
| Glyph | glyph | Glyph |