docs.unity3d.com
    Show / Hide Table of Contents

    Struct TMP_GlyphValueRecord

    The values used to adjust the position of a glyph or set of glyphs.

    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
    [Serializable]
    public struct TMP_GlyphValueRecord

    Constructors

    TMP_GlyphValueRecord(Single, Single, Single, Single)

    Constructor

    Declaration
    public TMP_GlyphValueRecord(float xPlacement, float yPlacement, float xAdvance, float yAdvance)
    Parameters
    Type Name Description
    System.Single xPlacement

    The positional adjustment affecting the horizontal bearing X of the glyph.

    System.Single yPlacement

    The positional adjustment affecting the horizontal bearing Y of the glyph.

    System.Single xAdvance

    The positional adjustment affecting the horizontal advance of the glyph.

    System.Single yAdvance

    The positional adjustment affecting the vertical advance of the glyph.

    Properties

    xAdvance

    The positional adjustment affecting the horizontal advance of the glyph.

    Declaration
    public float xAdvance { get; set; }
    Property Value
    Type Description
    System.Single

    xPlacement

    The positional adjustment affecting the horizontal bearing X of the glyph.

    Declaration
    public float xPlacement { get; set; }
    Property Value
    Type Description
    System.Single

    yAdvance

    The positional adjustment affecting the vertical advance of the glyph.

    Declaration
    public float yAdvance { get; set; }
    Property Value
    Type Description
    System.Single

    yPlacement

    The positional adjustment affecting the horizontal bearing Y of the glyph.

    Declaration
    public float yPlacement { get; set; }
    Property Value
    Type Description
    System.Single

    Operators

    Addition(TMP_GlyphValueRecord, TMP_GlyphValueRecord)

    Declaration
    public static TMP_GlyphValueRecord operator +(TMP_GlyphValueRecord a, TMP_GlyphValueRecord b)
    Parameters
    Type Name Description
    TMP_GlyphValueRecord a
    TMP_GlyphValueRecord b
    Returns
    Type Description
    TMP_GlyphValueRecord
    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