EnumMaskField
This method is obsolete. Use EditorGUI.EnumFlagsField instead. Makes a field for enum based masks.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
EnumMaskField(Rect, Enum)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes a field for enum based masks.
public static Enum EnumMaskField(Rect position, Enum enumValue)
Parameters
Returns
Type | Description |
|---|---|
| Enum | A selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). |
Remarks

Simple window that shows the enum mask field.
EnumMaskField(Rect, Enum, GUIStyle)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes a field for enum based masks.
public static Enum EnumMaskField(Rect position, Enum enumValue, GUIStyle style)
Parameters
Returns
Type | Description |
|---|---|
| Enum | A selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). |
Remarks

Simple window that shows the enum mask field.
EnumMaskField(Rect, string, Enum)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes a field for enum based masks.
public static Enum EnumMaskField(Rect position, string label, Enum enumValue)
Parameters
Returns
Type | Description |
|---|---|
| Enum | A selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). |
Remarks

Simple window that shows the enum mask field.
EnumMaskField(Rect, string, Enum, GUIStyle)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes a field for enum based masks.
public static Enum EnumMaskField(Rect position, string label, Enum enumValue, GUIStyle style)
Parameters
Returns
Type | Description |
|---|---|
| Enum | A selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). |
Remarks

Simple window that shows the enum mask field.
EnumMaskField(Rect, GUIContent, Enum)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes a field for enum based masks.
public static Enum EnumMaskField(Rect position, GUIContent label, Enum enumValue)
Parameters
Rectangle on the screen to use for this control.
Caption/label for the control.
Enum to use for the flags.
Returns
Type | Description |
|---|---|
| Enum | A selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). |
Remarks

Simple window that shows the enum mask field.
EnumMaskField(Rect, GUIContent, Enum, GUIStyle)
This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes a field for enum based masks.
public static Enum EnumMaskField(Rect position, GUIContent label, Enum enumValue, GUIStyle style)
Parameters
Rectangle on the screen to use for this control.
Caption/label for the control.
Enum to use for the flags.
Returns
Type | Description |
|---|---|
| Enum | A selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). |
Remarks

Simple window that shows the enum mask field.