docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TMP_TextElement

    Base class for all text elements like Character and SpriteCharacter.

    Inheritance
    object
    TMP_TextElement
    TMP_Character
    TMP_SpriteCharacter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    [Serializable]
    public class TMP_TextElement

    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
    Glyph

    glyphIndex

    The index of the glyph used by this text element.

    Declaration
    public uint glyphIndex { get; set; }
    Property Value
    Type Description
    uint

    scale

    The relative scale of the character.

    Declaration
    public float scale { get; set; }
    Property Value
    Type Description
    float

    textAsset

    The Text Asset to which this Text Element belongs.

    Declaration
    public TMP_Asset textAsset { get; set; }
    Property Value
    Type Description
    TMP_Asset

    unicode

    The unicode value (code point) of the character.

    Declaration
    public uint unicode { get; set; }
    Property Value
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)