EditorGUILayout.EnumPopup Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUILayout
EditorGUILayout.EnumPopup

static function EnumPopup (selected : System.Enum, params options : GUILayoutOption[]) : System.Enum

static function EnumPopup (selected : System.Enum, style : GUIStyle, params options : GUILayoutOption[]) : System.Enum

static function EnumPopup (label : string, selected : System.Enum, params options : GUILayoutOption[]) : System.Enum

static function EnumPopup (label : string, selected : System.Enum, style : GUIStyle, params options : GUILayoutOption[]) : System.Enum

static function EnumPopup (label : GUIContent, selected : System.Enum, params options : GUILayoutOption[]) : System.Enum

static function EnumPopup (label : GUIContent, selected : System.Enum, style : GUIStyle, params options : GUILayoutOption[]) : System.Enum

Parameters

NameDescription
label Optional label in front of the field.
selected The enum option the field shows.
style Optional GUIStyle.
options An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the style.
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight

Returns

System.Enum - The enum option that has been selected by the user.

Description

Make an enum popup selection field.

Takes the currently selected enum value as a parameter and returns the enum value selected by the user.