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)
Create an object representing a single option for the dropdown list.
Declaration
public OptionData(string text, Sprite image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | text | Optional text for the option.  | 
      
| UnityEngine.Sprite | image | Optional image for the option.  | 
      
OptionData(Sprite)
Declaration
public OptionData(Sprite image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| UnityEngine.Sprite | image | 
Properties
image
The image associated with the option.
Declaration
public Sprite image { get; set; }
  Property Value
| Type | Description | 
|---|---|
| UnityEngine.Sprite | 
text
The text associated with the option.
Declaration
public string text { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String |