docs.unity3d.com
    Show / Hide Table of Contents

    Struct TMP_CharacterInfo

    Structure containing information about individual text elements (character or sprites).

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: TMPro
    Syntax
    public struct TMP_CharacterInfo

    Fields

    ascender

    Declaration
    public float ascender
    Field Value
    Type Description
    System.Single

    aspectRatio

    Declaration
    public float aspectRatio
    Field Value
    Type Description
    System.Single

    baseLine

    Declaration
    public float baseLine
    Field Value
    Type Description
    System.Single

    bottomLeft

    Declaration
    public Vector3 bottomLeft
    Field Value
    Type Description
    Vector3

    bottomRight

    Declaration
    public Vector3 bottomRight
    Field Value
    Type Description
    Vector3

    character

    Declaration
    public char character
    Field Value
    Type Description
    System.Char

    color

    Declaration
    public Color32 color
    Field Value
    Type Description
    Color32

    descender

    Declaration
    public float descender
    Field Value
    Type Description
    System.Single

    elementType

    Declaration
    public TMP_TextElementType elementType
    Field Value
    Type Description
    TMP_TextElementType

    fontAsset

    Declaration
    public TMP_FontAsset fontAsset
    Field Value
    Type Description
    TMP_FontAsset

    highlightColor

    Declaration
    public Color32 highlightColor
    Field Value
    Type Description
    Color32

    index

    Index of the character in the raw string.

    Declaration
    public int index
    Field Value
    Type Description
    System.Int32

    isUsingAlternateTypeface

    Declaration
    public bool isUsingAlternateTypeface
    Field Value
    Type Description
    System.Boolean

    isVisible

    Declaration
    public bool isVisible
    Field Value
    Type Description
    System.Boolean

    lineNumber

    Declaration
    public int lineNumber
    Field Value
    Type Description
    System.Int32

    material

    Declaration
    public Material material
    Field Value
    Type Description
    Material

    materialReferenceIndex

    Declaration
    public int materialReferenceIndex
    Field Value
    Type Description
    System.Int32

    origin

    Declaration
    public float origin
    Field Value
    Type Description
    System.Single

    pageNumber

    Declaration
    public int pageNumber
    Field Value
    Type Description
    System.Int32

    pointSize

    Declaration
    public float pointSize
    Field Value
    Type Description
    System.Single

    scale

    Declaration
    public float scale
    Field Value
    Type Description
    System.Single

    spriteAsset

    Declaration
    public TMP_SpriteAsset spriteAsset
    Field Value
    Type Description
    TMP_SpriteAsset

    spriteIndex

    Declaration
    public int spriteIndex
    Field Value
    Type Description
    System.Int32

    strikethroughColor

    Declaration
    public Color32 strikethroughColor
    Field Value
    Type Description
    Color32

    style

    Declaration
    public FontStyles style
    Field Value
    Type Description
    FontStyles

    textElement

    Declaration
    public TMP_TextElement textElement
    Field Value
    Type Description
    TMP_TextElement

    topLeft

    Declaration
    public Vector3 topLeft
    Field Value
    Type Description
    Vector3

    topRight

    Declaration
    public Vector3 topRight
    Field Value
    Type Description
    Vector3

    underlineColor

    Declaration
    public Color32 underlineColor
    Field Value
    Type Description
    Color32

    vertex_BL

    Declaration
    public TMP_Vertex vertex_BL
    Field Value
    Type Description
    TMP_Vertex

    vertex_BR

    Declaration
    public TMP_Vertex vertex_BR
    Field Value
    Type Description
    TMP_Vertex

    vertex_TL

    Declaration
    public TMP_Vertex vertex_TL
    Field Value
    Type Description
    TMP_Vertex

    vertex_TR

    Declaration
    public TMP_Vertex vertex_TR
    Field Value
    Type Description
    TMP_Vertex

    vertexIndex

    Declaration
    public int vertexIndex
    Field Value
    Type Description
    System.Int32

    xAdvance

    Declaration
    public float xAdvance
    Field Value
    Type Description
    System.Single
    Back to top
    Copyright © 2025 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 02 April 2025