docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_Dropdown.OptionData

    Inheritance
    System.Object
    TMP_Dropdown.OptionData
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: TMPro
    Syntax
    [Serializable]
    public class OptionData

    Constructors

    OptionData()

    Declaration
    public OptionData()

    OptionData(String)

    Declaration
    public OptionData(string text)
    Parameters
    Type Name Description
    System.String text

    OptionData(String, Sprite)

    Declaration
    public OptionData(string text, Sprite image)
    Parameters
    Type Name Description
    System.String text
    Sprite image

    OptionData(Sprite)

    Declaration
    public OptionData(Sprite image)
    Parameters
    Type Name Description
    Sprite image

    Properties

    image

    Declaration
    public Sprite image { get; set; }
    Property Value
    Type Description
    Sprite

    text

    Declaration
    public string text { get; set; }
    Property Value
    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