docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TMP_Offset

    Important

    This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.

    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    public struct TMP_Offset

    Constructors

    TMP_Offset(float, float)

    Declaration
    public TMP_Offset(float horizontal, float vertical)
    Parameters
    Type Name Description
    float horizontal
    float vertical

    TMP_Offset(float, float, float, float)

    Declaration
    public TMP_Offset(float left, float right, float top, float bottom)
    Parameters
    Type Name Description
    float left
    float right
    float top
    float bottom

    Properties

    bottom

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

    horizontal

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

    left

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

    right

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

    top

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

    vertical

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

    zero

    Declaration
    public static TMP_Offset zero { get; }
    Property Value
    Type Description
    TMP_Offset

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    Equals(TMP_Offset)

    Declaration
    public bool Equals(TMP_Offset other)
    Parameters
    Type Name Description
    TMP_Offset other
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(TMP_Offset, TMP_Offset)

    Declaration
    public static bool operator ==(TMP_Offset lhs, TMP_Offset rhs)
    Parameters
    Type Name Description
    TMP_Offset lhs
    TMP_Offset rhs
    Returns
    Type Description
    bool

    operator !=(TMP_Offset, TMP_Offset)

    Declaration
    public static bool operator !=(TMP_Offset lhs, TMP_Offset rhs)
    Parameters
    Type Name Description
    TMP_Offset lhs
    TMP_Offset rhs
    Returns
    Type Description
    bool

    operator *(TMP_Offset, float)

    Declaration
    public static TMP_Offset operator *(TMP_Offset a, float b)
    Parameters
    Type Name Description
    TMP_Offset a
    float b
    Returns
    Type Description
    TMP_Offset
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)