Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Warning
Deprecated. EnumMaskField has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskField(Rect position, Enum enumValue)

Parameters

position

Rectangle on the screen to use for this control.

enumValue

Enum to use for the flags.

Returns

Type

Description

EnumA selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum).

Remarks

MaskField (EnumMaskField)
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.
Warning
Deprecated. EnumMaskField has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskField(Rect position, Enum enumValue, GUIStyle style)

Parameters

position

Rectangle on the screen to use for this control.

enumValue

Enum to use for the flags.

Optional GUIStyle.

Returns

Type

Description

EnumA selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum).

Remarks

MaskField (EnumMaskField)
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.
Warning
Deprecated. EnumMaskField has been deprecated. Use EnumFlagsField instead.
public static Enum EnumMaskField(Rect position, string label, Enum enumValue)

Parameters

position

Rectangle on the screen to use for this control.

label

Caption/label for the control.

enumValue

Enum to use for the flags.

Returns

Type

Description

EnumA selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum).

Remarks

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

Parameters

position

Rectangle on the screen to use for this control.

label

Caption/label for the control.

enumValue

Enum to use for the flags.

Optional GUIStyle.

Returns

Type

Description

EnumA selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum).

Remarks

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

Parameters

position

Rectangle on the screen to use for this control.

Caption/label for the control.

enumValue

Enum to use for the flags.

Returns

Type

Description

EnumA selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum).

Remarks

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

Parameters

position

Rectangle on the screen to use for this control.

Caption/label for the control.

enumValue

Enum to use for the flags.

Optional GUIStyle.

Returns

Type

Description

EnumA selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum).

Remarks

MaskField (EnumMaskField)
Simple window that shows the enum mask field.