 | GUILayoutExtPopup Method |
Shows either the currently selected option, or the whole list of options.
Namespace: Slash.Unity.Common.GUIAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static int Popup(
int selectedIndex,
string[] displayedOptions,
ref bool showList
)
Public Shared Function Popup (
selectedIndex As Integer,
displayedOptions As String(),
ByRef showList As Boolean
) As Integer
public:
static int Popup(
int selectedIndex,
array<String^>^ displayedOptions,
bool% showList
)
static member Popup :
selectedIndex : int *
displayedOptions : string[] *
showList : bool byref -> int
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:
Int32Index of the new selected option.
See Also