Unity - Scripting API: EditorGUILayout.EnumPopup
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public static Enum EnumPopup(Enum selected, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(Enum selected, GUIStyle style, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(string label, Enum selected, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(string label, Enum selected, GUIStyle style, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(GUIContent label, Enum selected, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(GUIContent label, Enum selected, GUIStyle style, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(GUIContent label, Enum selected, Func<Enum, bool> checkEnabled, bool includeObsolete, params GUILayoutOption[] options);
Declaration
public static Enum EnumPopup(GUIContent label, Enum selected, Func<Enum, bool> checkEnabled, bool includeObsolete, GUIStyle style, params GUILayoutOption[] options);
Returns
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.

Creates a primitive selected by the user.