5.8 – Drop Down List

On Value Change
On Value Change property is an Action List which is triggered when the value of drop down list changes.

Label Width
Label Width property is used to determine the width of the field label. If a value between 0 and 2 is given then label width will be calculated relatively to the drop down list’s total width else label width will be exactly the value in pixels. If Label Width property is set to zero then label will be disabled and not drawn.

Visible List Item Count
Visible List Item Count property is used to determine the number of items visible without need to scroll.

Empty Text
Empty Text property is a GUIContent. When an unavailable Selected Index value is set Empty Text is displayed as the text of the drop down list.

Selected Index
Selected Index property is used to determine initial selected item in the Options list. A value of zero indicates the first item in the Options list.

Options
Options property is an array of GUIContent. The elements of Options list are the selectable options shown when the list is dropped down.

Style
Style property is a GUIStyle and can be used to fine tune the visual appearance of the drop down list.

List Item Style
Style property is a GUIStyle and can be used to fine tune the visual appearance of the items.

Label Style
Label Style property is a GUIStyle and can be used to fine tune the visual appearance of the field label.