Class TMP_SpriteCharacter
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 representing a pictograph, image, sprite or emoji.
Inherited Members
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public class TMP_SpriteCharacter : TMP_TextElement
Constructors
TMP_SpriteCharacter()
Default constructor.
Declaration
public TMP_SpriteCharacter()
TMP_SpriteCharacter(uint, TMP_SpriteAsset, TMP_SpriteGlyph)
Constructor for new sprite character.
Declaration
public TMP_SpriteCharacter(uint unicode, TMP_SpriteAsset spriteAsset, TMP_SpriteGlyph glyph)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | unicode | Unicode value of the sprite character. |
| TMP_SpriteAsset | spriteAsset | Sprite Asset used by this sprite character. |
| TMP_SpriteGlyph | glyph | Glyph used by the sprite character. |
TMP_SpriteCharacter(uint, TMP_SpriteGlyph)
Constructor for new sprite character.
Declaration
public TMP_SpriteCharacter(uint unicode, TMP_SpriteGlyph glyph)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | unicode | Unicode value of the sprite character. |
| TMP_SpriteGlyph | glyph | Glyph used by the sprite character. |
Properties
name
The name of the sprite element.
Declaration
public string name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |