# EnumMaskPopup

> This method is obsolete. Use EditorGUI.EnumFlagsField instead. Makes an enum popup selection field for a bitmask.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## EnumMaskPopup(Rect, string, Enum)

This method is obsolete. Use [EditorGUI.EnumFlagsField](/engine/6000.0/script-reference/unityeditor/editorgui/enumflagsfield.md) instead.

Makes an enum popup selection field for a bitmask.

> **Warning:**
>
> **Deprecated.** EnumMaskPopup has been deprecated. Use EnumFlagsField instead.

```csharp
public static Enum EnumMaskPopup(Rect position, string label, Enum selected)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label in front of the field.**** (\[Enum]\(https\://learn.microsoft.com/dotnet/api/system.enum)): The enum options the field shows.

### Returns

| Type                                                       | Description                                          |
| ---------------------------------------------------------- | ---------------------------------------------------- |
| [Enum](https://learn.microsoft.com/dotnet/api/system.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](/engine/6000.0/script-reference/unityeditor/editorgui/enumpopup.md).

## EnumMaskPopup(Rect, string, Enum, GUIStyle)

This method is obsolete. Use [EditorGUI.EnumFlagsField](/engine/6000.0/script-reference/unityeditor/editorgui/enumflagsfield.md) instead.

Makes an enum popup selection field for a bitmask.

> **Warning:**
>
> **Deprecated.** EnumMaskPopup has been deprecated. Use EnumFlagsField instead.

```csharp
public static Enum EnumMaskPopup(Rect position, string label, Enum selected, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label in front of the field.**** (\[Enum]\(https\://learn.microsoft.com/dotnet/api/system.enum)): The enum options the field shows.**** (\[GUIStyle]\(/engine/6000.0/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.0/script-reference/unityengine/guistyle.md).

### Returns

| Type                                                       | Description                                          |
| ---------------------------------------------------------- | ---------------------------------------------------- |
| [Enum](https://learn.microsoft.com/dotnet/api/system.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](/engine/6000.0/script-reference/unityeditor/editorgui/enumpopup.md).

## EnumMaskPopup(Rect, GUIContent, Enum)

This method is obsolete. Use [EditorGUI.EnumFlagsField](/engine/6000.0/script-reference/unityeditor/editorgui/enumflagsfield.md) instead.

Makes an enum popup selection field for a bitmask.

> **Warning:**
>
> **Deprecated.** EnumMaskPopup has been deprecated. Use EnumFlagsField instead.

```csharp
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): Optional label in front of the field.**** (\[Enum]\(https\://learn.microsoft.com/dotnet/api/system.enum)): The enum options the field shows.

### Returns

| Type                                                       | Description                                          |
| ---------------------------------------------------------- | ---------------------------------------------------- |
| [Enum](https://learn.microsoft.com/dotnet/api/system.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](/engine/6000.0/script-reference/unityeditor/editorgui/enumpopup.md).

## EnumMaskPopup(Rect, GUIContent, Enum, GUIStyle)

This method is obsolete. Use [EditorGUI.EnumFlagsField](/engine/6000.0/script-reference/unityeditor/editorgui/enumflagsfield.md) instead.

Makes an enum popup selection field for a bitmask.

> **Warning:**
>
> **Deprecated.** EnumMaskPopup has been deprecated. Use EnumFlagsField instead.

```csharp
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): Optional label in front of the field.**** (\[Enum]\(https\://learn.microsoft.com/dotnet/api/system.enum)): The enum options the field shows.**** (\[GUIStyle]\(/engine/6000.0/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.0/script-reference/unityengine/guistyle.md).

### Returns

| Type                                                       | Description                                          |
| ---------------------------------------------------------- | ---------------------------------------------------- |
| [Enum](https://learn.microsoft.com/dotnet/api/system.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](/engine/6000.0/script-reference/unityeditor/editorgui/enumpopup.md).
