docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_TextElement

    Base class for all text elements like characters (glyphs) and sprites.

    Inheritance
    System.Object
    TMP_TextElement
    TMP_Glyph
    TMP_Sprite
    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

    height

    Declaration
    public float height
    Field Value
    Type Description
    System.Single

    id

    Declaration
    public int id
    Field Value
    Type Description
    System.Int32

    scale

    Declaration
    public float scale
    Field Value
    Type Description
    System.Single

    width

    Declaration
    public float width
    Field Value
    Type Description
    System.Single

    x

    Declaration
    public float x
    Field Value
    Type Description
    System.Single

    xAdvance

    Declaration
    public float xAdvance
    Field Value
    Type Description
    System.Single

    xOffset

    Declaration
    public float xOffset
    Field Value
    Type Description
    System.Single

    y

    Declaration
    public float y
    Field Value
    Type Description
    System.Single

    yOffset

    Declaration
    public float yOffset
    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