EnumMaskPopup
This method is obsolete. Use EditorGUILayout.EnumFlagsField instead. Make an enum popup selection field for a bitmask.
Read time 2 minutesLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
EnumMaskPopup(string, Enum, GUILayoutOption[])
This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(string label, Enum selected, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The enum options the field shows.
Optional layout options.
Returns
Type | Description |
|---|---|
| Enum | The enum options that has been selected by the user. |
Remarks
Takes an enum with the Flags attribute as input parameter and returns the enum values selected by the user.
Additional Resources:EditorGUI.EnumPopup.
EnumMaskPopup(string, Enum, GUIStyle, GUILayoutOption[])
This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(string label, Enum selected, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The enum options the field shows.
Optional layout options.
Returns
Type | Description |
|---|---|
| Enum | The enum options that has been selected by the user. |
Remarks
Takes an enum with the Flags attribute as input parameter and returns the enum values selected by the user.
Additional Resources:EditorGUI.EnumPopup.
EnumMaskPopup(GUIContent, Enum, GUILayoutOption[])
This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(GUIContent label, Enum selected, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The enum options the field shows.
Optional layout options.
Returns
Type | Description |
|---|---|
| Enum | The enum options that has been selected by the user. |
Remarks
Takes an enum with the Flags attribute as input parameter and returns the enum values selected by the user.
Additional Resources:EditorGUI.EnumPopup.
EnumMaskPopup(GUIContent, Enum, GUIStyle, GUILayoutOption[])
This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(GUIContent label, Enum selected, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The enum options the field shows.
Optional layout options.
Returns
Type | Description |
|---|---|
| Enum | The enum options that has been selected by the user. |
Remarks
Takes an enum with the Flags attribute as input parameter and returns the enum values selected by the user.
Additional Resources:EditorGUI.EnumPopup.