Class TMP_TextElement
Base class for all text elements like Character and SpriteCharacter.
Inheritance
System.Object
TMP_TextElement
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TMPro
Syntax
[Serializable]
public class TMP_TextElement
Fields
m_ElementType
Declaration
[SerializeField]
protected TextElementType m_ElementType
Field Value
Type | Description |
---|---|
TextElementType |
Properties
elementType
The type of text element which can be a character or sprite.
Declaration
public TextElementType elementType { get; }
Property Value
Type | Description |
---|---|
TextElementType |
glyph
The glyph used by this text element.
Declaration
public Glyph glyph { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.TextCore.Glyph |
glyphIndex
The index of the glyph used by this text element.
Declaration
public uint glyphIndex { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
scale
The relative scale of the character.
Declaration
public float scale { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
unicode
The unicode value (code point) of the character.
Declaration
public uint unicode { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |