AnimancerStateDrawer<T> Class

Summary

[Editor-Only] Draws the Inspector GUI for an Animancer.AnimancerState.
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
AutoNormalizeSiblingWeights 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
AddContextMenuFunctions(GenericMenu) void
Adds the details of this state to the `menu`.
DoDetailLinesGUI(Rect, Rect, float) void
Draws lines for the current weight, time, and fade destination.
DoDetailsGUI() void
Draws the details of the Animancer.Editor.CustomGUI`1.Value.
DoFoldoutGUI(Rect) void
Draws a foldout arrow to expand/collapse the node details.
DoLabelGUI(Rect) void
Draws the state's main label with a bar to indicate its current time.
DoTimeHighlightBarGUI(Rect, bool, float, float, float, float, bool) Rect
Draws a progress bar to show the animation time.
static
DoTimeHighlightBarGUI(Rect, float) Rect
Draws a progress bar to show the animation time.
PopulateContextMenu(GenericMenu) void
Adds functions relevant to the Animancer.Editor.CustomGUI`1.Value.