Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EnumMaskPopup

This method is obsolete. Use EditorGUI.EnumFlagsField instead. Makes 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(Rect, string, Enum)

This method is obsolete. Use EditorGUI.EnumFlagsField instead.
Makes an enum popup selection field for a bitmask.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(Rect position, string label, Enum selected)

Parameters

position

Rectangle on the screen to use for the field.

label

Optional label in front of the field.

selected

The enum options the field shows.

Returns

Type

Description

EnumThe 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.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(Rect position, string label, Enum selected, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the field.

label

Optional label in front of the field.

selected

The enum options the field shows.

Optional GUIStyle.

Returns

Type

Description

EnumThe 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.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected)

Parameters

position

Rectangle on the screen to use for the field.

Optional label in front of the field.

selected

The enum options the field shows.

Returns

Type

Description

EnumThe 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.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the field.

Optional label in front of the field.

selected

The enum options the field shows.

Optional GUIStyle.

Returns

Type

Description

EnumThe 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.