DropDown Menu Control. More...
Public Member Functions | |
void | UpdateList () |
Updates all items in list. Need to call this after manipulating strings. | |
void | SetSelectedItem () |
Sets the selected item (based on index) | |
Public Attributes | |
tk2dUIItem | dropDownButton |
Button that controls, dropdown list from appearing. | |
tk2dTextMesh | selectedTextMesh |
Primary textMesh, this will read what DropDownItem is selected. | |
float | height |
Visual height of this ui item, used for spacing. | |
tk2dUIDropDownItem | dropDownItemTemplate |
Template for each drop down item. Will be cloned. | |
Properties | |
List< string > | ItemList [get, set] |
List of all text item in dropdown menu. | |
int | Index [get, set] |
Which list index is currently selected. | |
string | SelectedItem [get] |
Text of the currently selected dropdown list item. | |
Events | |
System.Action | OnSelectedItemChange |
Event, if different item is selected. |
DropDown Menu Control.
void tk2dUIDropDownMenu.SetSelectedItem | ( | ) |
Sets the selected item (based on index)
void tk2dUIDropDownMenu.UpdateList | ( | ) |
Updates all items in list. Need to call this after manipulating strings.
Button that controls, dropdown list from appearing.
Template for each drop down item. Will be cloned.
Visual height of this ui item, used for spacing.
Primary textMesh, this will read what DropDownItem is selected.
int tk2dUIDropDownMenu.Index [get, set] |
Which list index is currently selected.
List<string> tk2dUIDropDownMenu.ItemList [get, set] |
List of all text item in dropdown menu.
string tk2dUIDropDownMenu.SelectedItem [get] |
Text of the currently selected dropdown list item.
System.Action tk2dUIDropDownMenu.OnSelectedItemChange |
Event, if different item is selected.