Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EnumMaskPopup

This method is obsolete. Use EditorGUILayout.EnumFlagsField instead. Make an enum popup selection field for a bitmask.
Read time 2 minutesLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

EnumMaskPopup(string, Enum, GUILayoutOption[])

This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(string label, Enum selected, params GUILayoutOption[] options)

Parameters

label

Optional label in front of the field.

selected

The enum options the field shows.

Optional layout options.

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(string, Enum, GUIStyle, GUILayoutOption[])

This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(string label, Enum selected, GUIStyle style, params GUILayoutOption[] options)

Parameters

label

Optional label in front of the field.

selected

The enum options the field shows.

Optional GUIStyle.

Optional layout options.

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(GUIContent, Enum, GUILayoutOption[])

This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(GUIContent label, Enum selected, params GUILayoutOption[] options)

Parameters

Optional label in front of the field.

selected

The enum options the field shows.

Optional layout options.

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(GUIContent, Enum, GUIStyle, GUILayoutOption[])

This method is obsolete. Use EditorGUILayout.EnumFlagsField instead.
Make an enum popup selection field for a bitmask.
Warning
Deprecated. EnumMaskPopup has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskPopup(GUIContent label, Enum selected, GUIStyle style, params GUILayoutOption[] options)

Parameters

Optional label in front of the field.

selected

The enum options the field shows.

Optional GUIStyle.

Optional layout options.

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.