Summary
[Editor-Only] A
UnityEditor.PropertyDrawer which adds an "Edit" button to a field.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- PropertyDrawer
- Derived Types
graph BT
Type-->Base0["PropertyDrawer"]
Type["EditableFieldDrawer"]
class Type type-node
Derived0["WeightedMaskLayersDefinitionDrawer"]-->Type
click Derived0 "/animancer/api/Animancer.Editor/WeightedMaskLayersDefinitionDrawer"
Syntax
public abstract class EditableFieldDrawer : PropertyDrawer
Events
| Name | Type | Summary |
|---|---|---|
| OnEdit | Action |
The method to call when the "Edit" button is clicked.
static
|
Methods
| Name | Value | Summary |
|---|---|---|
| GetEditButtonLabel |
void |
Sets the `label` for the "Edit" button.
|
| GetPropertyHeight |
float | |
| OnGUI |
void |