docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TMP_Dropdown.OptionData

    Inheritance
    object
    TMP_Dropdown.OptionData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    [Serializable]
    public class TMP_Dropdown.OptionData

    Constructors

    OptionData()

    Declaration
    public OptionData()

    OptionData(string)

    Declaration
    public OptionData(string text)
    Parameters
    Type Name Description
    string text

    OptionData(string, Sprite, Color)

    Create an object representing a single option for the dropdown list.

    Declaration
    public OptionData(string text, Sprite image, Color color)
    Parameters
    Type Name Description
    string text

    Optional text for the option.

    Sprite image

    Optional image for the option.

    Color color

    OptionData(Sprite)

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

    Properties

    color

    The color associated with the option.

    Declaration
    public Color color { get; set; }
    Property Value
    Type Description
    Color

    image

    The image associated with the option.

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

    text

    The text associated with the option.

    Declaration
    public string text { get; set; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2024 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)