InspectorUIUtility.DrawEnumSerializedProperty Method

Definition

Overloads

DrawEnumSerializedProperty(SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features. Displays prefab pending updates

DrawEnumSerializedProperty(Rect, SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features. Displays prefab pending updates

DrawEnumSerializedProperty(SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features. Displays prefab pending updates

public:
 static Enum ^ DrawEnumSerializedProperty(UnityEditor::SerializedProperty ^ prop, UnityEngine::GUIContent ^ label, Enum ^ propValue);
public static Enum DrawEnumSerializedProperty (UnityEditor.SerializedProperty prop, UnityEngine.GUIContent label, Enum propValue);
static member DrawEnumSerializedProperty : UnityEditor.SerializedProperty * UnityEngine.GUIContent * Enum -> Enum
Public Shared Function DrawEnumSerializedProperty (prop As SerializedProperty, label As GUIContent, propValue As Enum) As Enum

Parameters

prop
UnityEditor.SerializedProperty

serialized property corresponding to Enum

label
UnityEngine.GUIContent

label for property

propValue
Enum

Current enum value for property

Returns

New enum value after draw

Applies to

DrawEnumSerializedProperty(Rect, SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features. Displays prefab pending updates

public:
 static Enum ^ DrawEnumSerializedProperty(UnityEngine::Rect position, UnityEditor::SerializedProperty ^ prop, UnityEngine::GUIContent ^ label, Enum ^ propValue);
public static Enum DrawEnumSerializedProperty (UnityEngine.Rect position, UnityEditor.SerializedProperty prop, UnityEngine.GUIContent label, Enum propValue);
static member DrawEnumSerializedProperty : UnityEngine.Rect * UnityEditor.SerializedProperty * UnityEngine.GUIContent * Enum -> Enum
Public Shared Function DrawEnumSerializedProperty (position As Rect, prop As SerializedProperty, label As GUIContent, propValue As Enum) As Enum

Parameters

position
UnityEngine.Rect

position to render the serialized property

prop
UnityEditor.SerializedProperty

serialized property corresponding to Enum

label
UnityEngine.GUIContent

label for property

propValue
Enum

Current enum value for property

Returns

New enum value after draw

Applies to