docs.unity3d.com
    Show / Hide Table of Contents

    Struct TMP_Offset

    Namespace: TMPro
    Syntax
    public struct TMP_Offset

    Constructors

    TMP_Offset(Single, Single)

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

    TMP_Offset(Single, Single, Single, Single)

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

    Properties

    bottom

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

    horizontal

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

    left

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

    right

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

    top

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

    vertical

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

    zero

    Declaration
    public static readonly 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
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(TMP_Offset)

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

    GetHashCode()

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

    Operators

    Equality(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
    Boolean

    Inequality(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
    Boolean

    Multiply(TMP_Offset, Single)

    Declaration
    public static TMP_Offset operator *(TMP_Offset a, float b)
    Parameters
    Type Name Description
    TMP_Offset a
    Single b
    Returns
    Type Description
    TMP_Offset
    Back to top
    Terms of use
    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