EditorGUI.Popupstatic function Popup (position : Rect, selectedIndex : int, displayedOptions : string[], style : GUIStyle = EditorStyles.popup) : intstatic function Popup (position : Rect, selectedIndex : int, displayedOptions : GUIContent[], style : GUIStyle = EditorStyles.popup) : intstatic function Popup (position : Rect, label : string, selectedIndex : int, displayedOptions : string[], style : GUIStyle = EditorStyles.popup) : intstatic function Popup (position : Rect, label : GUIContent, selectedIndex : int, displayedOptions : GUIContent[], style : GUIStyle = EditorStyles.popup) : intParameters
Returnsint - The index of the option that has been selected by the user. DescriptionMake a generic popup selection field. Takes the currently selected index as a parameter and returns the index selected by the user. |
