Dropdown#
- class Dropdown#
A control for choosing one of a list of options, which are shown when it is clicked. Added to a
Canvasor aPanel.Base class:InputControlInherited Members
From
InputControl:ChangedFrom
Control:Interactable,Color,TooltipFrom
Object:RectTransform,LayoutElement,Visible,Remove
- IList<string> Options { get; set; }#
The options that the dropdown offers.
- Game Scenes:
All
Note
Setting the options resets the selection to the first of them, or to nothing when the list is empty.
- int SelectedIndex { get; set; }#
The position in
Dropdown.Optionsof the option that is chosen.- Game Scenes:
All
Note
Zero while the dropdown has no options, as there is nothing to choose.