EnumMaskPopup
This method is obsolete. Use EditorGUI.EnumFlagsField instead. Makes an enum popup selection field for a bitmask.
Read time 2 minutesLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
EnumMaskPopup(Rect, string, Enum)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(Rect position, string label, Enum selected)
Parameters
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(Rect, string, Enum, GUIStyle)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(Rect position, string label, Enum selected, GUIStyle style)
Parameters
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(Rect, GUIContent, Enum)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected)
Parameters
Rectangle on the screen to use for the field.
Optional label in front of the field.
The enum options the field shows.
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(Rect, GUIContent, Enum, GUIStyle)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes an enum popup selection field for a bitmask.
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected, GUIStyle style)
Parameters
Rectangle on the screen to use for the field.
Optional label in front of the field.
The enum options the field shows.
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.