AnimancerStateDrawer<T> Class

Summary

[Editor-Only] Draws the Inspector GUI for an Animancer.AnimancerState.
graph BT Type-->Base0["AnimancerNodeDrawer<T>"] Base0-->Base1["Object"] Type-.->Interface0["IAnimancerNodeDrawer"] click Interface0 "/animancer/api/Animancer.Editor/IAnimancerNodeDrawer" Type["AnimancerStateDrawer<T>"] class Type type-node Derived0["ClipState.Drawer"]-->Type click Derived0 "/animancer/api/Animancer/Drawer" Derived1["ParametizedAnimancerStateDrawer<T>"]-->Type click Derived1 "/animancer/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(T) Creates a new Animancer.Editor.AnimancerStateDrawer`1 to manage the Inspector GUI for the `target`.

Properties

Name Value Summary
AutoNormalizeSiblingWeights 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
AddContextMenuFunctions(GenericMenu) 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(Rect) void
Draws a foldout arrow to expand/collapse the node details.
DoLabelGUI(Rect) 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.
DoTimeHighlightBarGUI(Rect, bool, float, float, float, bool) void
Draws a progress bar to show the animation time.
static
PopulateContextMenu(GenericMenu) void
Adds functions relevant to the Animancer.Editor.AnimancerNodeDrawer`1.Target.