# EnumMaskPopup

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

## Definition

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

## EnumMaskPopup(string, Enum, GUILayoutOption\[])

This method is obsolete. Use [EditorGUILayout.EnumFlagsField](/engine/6000.6/script-reference/unityeditor/editorguilayout/enumflagsfield.md) instead.

Make an enum popup selection field for a bitmask.

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

```csharp
public static Enum EnumMaskPopup(string label, Enum selected, params GUILayoutOption[] options)
```

### Parameters

**** (\[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.**** (\[GUILayoutOption\[]]\(/engine/6000.6/script-reference/unityengine/guilayoutoption)): Optional layout options.

### 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.6/script-reference/unityeditor/editorgui/enumpopup.md).

## EnumMaskPopup(string, Enum, GUIStyle, GUILayoutOption\[])

This method is obsolete. Use [EditorGUILayout.EnumFlagsField](/engine/6000.6/script-reference/unityeditor/editorguilayout/enumflagsfield.md) instead.

Make an enum popup selection field for a bitmask.

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

```csharp
public static Enum EnumMaskPopup(string label, Enum selected, GUIStyle style, params GUILayoutOption[] options)
```

### Parameters

**** (\[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.6/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md).**** (\[GUILayoutOption\[]]\(/engine/6000.6/script-reference/unityengine/guilayoutoption)): Optional layout options.

### 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.6/script-reference/unityeditor/editorgui/enumpopup.md).

## EnumMaskPopup(GUIContent, Enum, GUILayoutOption\[])

This method is obsolete. Use [EditorGUILayout.EnumFlagsField](/engine/6000.6/script-reference/unityeditor/editorguilayout/enumflagsfield.md) instead.

Make an enum popup selection field for a bitmask.

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

```csharp
public static Enum EnumMaskPopup(GUIContent label, Enum selected, params GUILayoutOption[] options)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.6/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.**** (\[GUILayoutOption\[]]\(/engine/6000.6/script-reference/unityengine/guilayoutoption)): Optional layout options.

### 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.6/script-reference/unityeditor/editorgui/enumpopup.md).

## EnumMaskPopup(GUIContent, Enum, GUIStyle, GUILayoutOption\[])

This method is obsolete. Use [EditorGUILayout.EnumFlagsField](/engine/6000.6/script-reference/unityeditor/editorguilayout/enumflagsfield.md) instead.

Make an enum popup selection field for a bitmask.

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

```csharp
public static Enum EnumMaskPopup(GUIContent label, Enum selected, GUIStyle style, params GUILayoutOption[] options)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.6/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.6/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md).**** (\[GUILayoutOption\[]]\(/engine/6000.6/script-reference/unityengine/guilayoutoption)): Optional layout options.

### 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.6/script-reference/unityeditor/editorgui/enumpopup.md).
