docs.unity.cn
    Show / Hide Table of Contents

    Class TMP_Character

    A basic element of text.

    Inheritance
    Object
    TMP_TextElement
    TMP_Character
    Inherited Members
    TMP_TextElement.elementType
    TMP_TextElement.unicode
    TMP_TextElement.textAsset
    TMP_TextElement.glyph
    TMP_TextElement.glyphIndex
    TMP_TextElement.scale
    TMP_TextElement.m_ElementType
    Namespace: TMPro
    Syntax
    [Serializable]
    public class TMP_Character : TMP_TextElement

    Constructors

    TMP_Character()

    Default constructor.

    Declaration
    public TMP_Character()

    TMP_Character(UInt32, TMP_FontAsset, Glyph)

    Constructor for new character

    Declaration
    public TMP_Character(uint unicode, TMP_FontAsset fontAsset, Glyph glyph)
    Parameters
    Type Name Description
    UInt32 unicode

    Unicode value.

    TMP_FontAsset fontAsset

    The font asset to which this character belongs.

    Glyph glyph

    Glyph

    TMP_Character(UInt32, Glyph)

    Constructor for new character

    Declaration
    public TMP_Character(uint unicode, Glyph glyph)
    Parameters
    Type Name Description
    UInt32 unicode

    Unicode value.

    Glyph glyph

    Glyph

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 23 April 2021