Class AnimationTriggersDrawer
Inherited Members
Namespace: UnityEditor .UI
Assembly: UnityEditor.UI.dll
Syntax
[CustomPropertyDrawer(typeof(AnimationTriggers), true)]
public class AnimationTriggersDrawer : PropertyDrawer
Methods
CreatePropertyGUI(SerializedProperty)
Creates custom GUI with UI Toolkit for the property.
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
property | The SerializedProperty to make the custom GUI for. |
Returns
Type | Description |
---|---|
Visual |
The element containing the custom GUI. |
Overrides
GetPropertyHeight(SerializedProperty, GUIContent)
Override this method to specify how tall the GUI for this field is in pixels.
Declaration
public override float GetPropertyHeight(SerializedProperty prop, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
prop | |
GUIContent | label | The label of this property. |
Returns
Type | Description |
---|---|
float | The height in pixels. |
Overrides
OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.
Declaration
public override void OnGUI(Rect rect, SerializedProperty prop, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | |
Serialized |
prop | |
GUIContent | label | The label of this property. |