Dropdown.OptionData
Namespace: UnityEngine.UI Assembly: UnityEngine.UI.dll Syntax[Serializable]
public class Dropdown.OptionData
Constructors OptionData() Declaration OptionData(string) Declaration
public OptionData(string text)
Parameters Type Name Description string text OptionData(string, Sprite)
Create an object representing a single option for the dropdown list.
Declarationpublic OptionData(string text, Sprite image)
Parameters Type Name Description string text
Optional text for the option.
Sprite imageOptional image for the option.
OptionData(Sprite) Declarationpublic OptionData(Sprite image)
Parameters Type Name Description Sprite image Properties image
The image associated with the option.
Declarationpublic Sprite image { get; set; }
Property Value text
The text associated with the option.
Declarationpublic string text { get; set; }
Property Value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4