docs.unity3d.com
    Show / Hide Table of Contents

    Struct TMP_LinkInfo

    Structure containing information about individual links contained in the text object.

    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
    public struct TMP_LinkInfo

    Fields

    hashCode

    Declaration
    public int hashCode
    Field Value
    Type Description
    System.Int32

    linkIdFirstCharacterIndex

    Declaration
    public int linkIdFirstCharacterIndex
    Field Value
    Type Description
    System.Int32

    linkIdLength

    Declaration
    public int linkIdLength
    Field Value
    Type Description
    System.Int32

    linkTextfirstCharacterIndex

    Declaration
    public int linkTextfirstCharacterIndex
    Field Value
    Type Description
    System.Int32

    linkTextLength

    Declaration
    public int linkTextLength
    Field Value
    Type Description
    System.Int32

    textComponent

    Declaration
    public TMP_Text textComponent
    Field Value
    Type Description
    TMP_Text

    Methods

    GetLinkID()

    Function which returns the link ID as a string.

    Declaration
    public string GetLinkID()
    Returns
    Type Description
    System.String

    GetLinkText()

    Function which returns the text contained in a link.

    Declaration
    public string GetLinkText()
    Returns
    Type Description
    System.String
    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