docs.unity.cn
    Show / Hide Table of Contents

    Struct TMP_GlyphValueRecord

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

    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
    Single xPlacement

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

    Single yPlacement

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

    Single xAdvance

    The positional adjustment affecting the horizontal advance of the glyph.

    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
    Single

    xPlacement

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

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

    yAdvance

    The positional adjustment affecting the vertical advance of the glyph.

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

    yPlacement

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

    Declaration
    public float yPlacement { get; set; }
    Property Value
    Type Description
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 19 February 2021