Summary
[Editor-Only] Draws the Inspector GUI for an
Animancer.AnimancerNode
.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Interfaces
- Base Types
-
- Object
- Derived Types
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IAnimancerNodeDrawer"]
click Interface0 "/animancer-v7-4/api/Animancer.Editor/IAnimancerNodeDrawer"
Type["AnimancerNodeDrawer<T>"]
class Type type-node
Derived0["AnimancerStateDrawer<T>"]-->Type
click Derived0 "/animancer-v7-4/api/Animancer.Editor/AnimancerStateDrawer_1"
Derived1["AnimancerLayerDrawer"]-->Type
click Derived1 "/animancer-v7-4/api/Animancer.Editor/AnimancerLayerDrawer"
Syntax
public abstract class AnimancerNodeDrawer<T> : IAnimancerNodeDrawer where T : AnimancerNode
Type Parameters
Name | Description |
---|---|
T |
Fields
Name | Constant Value | Summary |
---|---|---|
DetailsPrefix | Details/ |
The menu label prefix used for details about the
Animancer.Editor.AnimancerNodeDrawer`1.Target .
static
|
Properties
Name | Value | Summary |
---|---|---|
Auto |
bool |
Indicates whether changing the
Animancer.AnimancerNode.Weight should normalize its siblings. |
IsExpanded | bool |
If true, the details of the
Animancer.Editor.AnimancerNodeDrawer`1.Target will be expanded in the Inspector. |
RegionStyle | GUIStyle |
The
UnityEngine.GUIStyle used for the area encompassing this drawer. |
Target | T |
The node being managed.
|
Methods
Name | Value | Summary |
---|---|---|
CheckContextMenu |
void |
Checks if the current event is a context menu click within the `clickArea` and opens a context menu with various
functions for the
Animancer.Editor.AnimancerNodeDrawer`1.Target .
|
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.
|
DoGUI |
void |
Draws the details and controls for the target
Animancer.Editor.AnimancerNodeDrawer`1.Target in the Inspector. |
DoHeaderGUI |
void |
Draws the name and other details of the
Animancer.Editor.AnimancerNodeDrawer`1.Target in the GUI.
|
DoLabelGUI |
void |
Draws a field for the
Animancer.AnimancerState.MainObject if it has one, otherwise just a simple text
label.
|
DoNodeDetailsGUI |
void |
Draws controls for
Animancer.AnimancerState.IsPlaying , Animancer.AnimancerNode.Speed , and
Animancer.AnimancerNode.Weight .
|
PopulateContextMenu |
void |
Adds functions relevant to the
Animancer.Editor.AnimancerNodeDrawer`1.Target . |