Summary
[Editor-Only] Draws the Inspector GUI for an
Animancer.AnimancerState
.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Interfaces
- Base Types
-
- Object
- AnimancerNodeDrawer
<T>
- Derived Types
graph BT
Type-->Base0["AnimancerNodeDrawer<T>"]
Base0-->Base1["Object"]
Type-.->Interface0["IAnimancerNodeDrawer"]
click Interface0 "/animancer-v7-4/api/Animancer.Editor/IAnimancerNodeDrawer"
Type["AnimancerStateDrawer<T>"]
class Type type-node
Derived0["ClipState.Drawer"]-->Type
click Derived0 "/animancer-v7-4/api/Animancer/Drawer"
Derived1["ParametizedAnimancerStateDrawer<T>"]-->Type
click Derived1 "/animancer-v7-4/api/Animancer.Editor/ParametizedAnimancerStateDrawer_1"
Syntax
public class AnimancerStateDrawer<T> : AnimancerNodeDrawer<T>, IAnimancerNodeDrawer
where T : AnimancerState
Type Parameters
Name | Description |
---|---|
T |
Constructors
Name | Summary |
---|---|
AnimancerStateDrawer |
Creates a new Animancer.Editor.AnimancerStateDrawer`1 to manage the Inspector GUI for the `target`.
|
Properties
Name | Value | Summary |
---|---|---|
Auto |
bool |
Indicates whether changing the
Animancer.AnimancerNode.Weight should normalize its siblings. |
RegionStyle | GUIStyle |
The
UnityEngine.GUIStyle used for the area encompassing this drawer is null . |
Methods
Name | Value | Summary |
---|---|---|
Add |
void |
Adds the details of this state to the `menu`.
|
DoDetailsGUI |
void |
Draws the details of the
Animancer.Editor.AnimancerNodeDrawer`1.Target in the GUI. |
DoFoldoutGUI |
void |
Draws a foldout arrow to expand/collapse the node details.
|
DoLabelGUI |
void |
Draws the state's main label: an
UnityEngine.Object field if it has a
Animancer.AnimancerState.MainObject , otherwise just a simple text label.
Also shows a bar to indicate its progress.
|
Do |
void |
Draws a progress bar to show the animation time.
static
|
PopulateContextMenu |
void |
Adds functions relevant to the
Animancer.Editor.AnimancerNodeDrawer`1.Target . |