Class TMP_TextElement
docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_TextElement

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

    Inheritance
    Object
    TMP_TextElement
    TMP_Glyph
    TMP_Sprite
    Namespace: TMPro
    Syntax
    [Serializable]
    public class TMP_TextElement

    Fields

    height

    Declaration
    public float height
    Field Value
    Type Description
    Single

    id

    Declaration
    public int id
    Field Value
    Type Description
    Int32

    scale

    Declaration
    public float scale
    Field Value
    Type Description
    Single

    width

    Declaration
    public float width
    Field Value
    Type Description
    Single

    x

    Declaration
    public float x
    Field Value
    Type Description
    Single

    xAdvance

    Declaration
    public float xAdvance
    Field Value
    Type Description
    Single

    xOffset

    Declaration
    public float xOffset
    Field Value
    Type Description
    Single

    y

    Declaration
    public float y
    Field Value
    Type Description
    Single

    yOffset

    Declaration
    public float yOffset
    Field Value
    Type Description
    Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023