Dropdown#
- class UI.Dropdown#
A control for choosing one of a list of options, which are shown when it is clicked. Added to a
UI.Canvasor aUI.Panel.Base class:UI.InputControlInherited Members
From
UI.InputControl:changedFrom
UI.Control:interactable,color,tooltipFrom
UI.Object:rect_transform,layout_element,visible,remove
-
options:
List# The options that the dropdown offers.
- Attribute:
Can be read or written
Note
Setting the options resets the selection to the first of them, or to nothing when the list is empty.
-
selected_index:
number# The position in
UI.Dropdown.optionsof the option that is chosen.- Attribute:
Can be read or written
Note
Zero while the dropdown has no options, as there is nothing to choose.