Click or drag to resize
GUILayoutExtPopup Method
Shows either the currently selected option, or the whole list of options.

Namespace: Slash.Unity.Common.GUI
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public static int Popup(
	int selectedIndex,
	string[] displayedOptions,
	ref bool showList
)

Parameters

selectedIndex
Type: SystemInt32
Index of the currently selected option.
displayedOptions
Type: SystemString
List of options.
showList
Type: SystemBoolean
Whether to show the whole list, or not.

Return Value

Type: Int32
Index of the new selected option.
See Also