Summary
[Editor-Only] Draws the Inspector GUI for an
Animancer.AnimancerState
.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Interfaces
- Base Types
-
- Object
- CustomGUI
<T> - AnimancerNodeDrawer
<T>
- Derived Types
graph BT
Type-->Base0["AnimancerNodeDrawer<T>"]
Base0-->Base1["CustomGUI<T>"]
Base1-->Base2["Object"]
Type-.->Interface0["ICustomGUI"]
click Interface0 "/animancer/api/Animancer.Editor/ICustomGUI"
Type["AnimancerStateDrawer<T>"]
class Type type-node
Derived0["PlayableAssetStateDrawer"]-->Type
click Derived0 "/animancer/api/Animancer.Editor/PlayableAssetStateDrawer"
Derived1["ParametizedAnimancerStateDrawer<T>"]-->Type
click Derived1 "/animancer/api/Animancer.Editor/ParametizedAnimancerStateDrawer_1"
Derived2["ClipStateDrawer"]-->Type
click Derived2 "/animancer/api/Animancer.Editor/ClipStateDrawer"
Syntax
[CustomGUI(typeof(AnimancerState))]
public class AnimancerStateDrawer<T> : AnimancerNodeDrawer<T>, ICustomGUI where T : AnimancerState
Attributes
Type | Description |
---|---|
CustomGUIAttribute | [Editor-Only]
Attribute for classes which implement Animancer.Editor.CustomGUI`1 to specify the type of objects they apply to.
|
Type Parameters
Name | Description |
---|---|
T |
Properties
Name | Value | Summary |
---|---|---|
Auto |
bool |
Indicates whether changing the
Animancer.AnimancerNode.Weight should normalize its siblings. |
MainObjectName | string |
The display name of the
Animancer.AnimancerState.MainObject field. |
Methods
Name | Value | Summary |
---|---|---|
Add |
void |
Adds the details of this state to the `menu`.
|
DoDetailLinesGUI |
void |
Draws lines for the current weight, time, and fade destination.
|
DoDetailsGUI |
void |
Draws the details of the
Animancer.Editor.CustomGUI`1.Value . |
DoFoldoutGUI |
void |
Draws a foldout arrow to expand/collapse the node details.
|
DoLabelGUI |
void |
Draws the state's main label with a bar to indicate its current time.
|
Do |
Rect |
Draws a progress bar to show the animation time.
static
|
Do |
Rect |
Draws a progress bar to show the animation time.
|
PopulateContextMenu |
void |
Adds functions relevant to the
Animancer.Editor.CustomGUI`1.Value . |