AnimancerNodeDrawer<T> Class

Summary

[Editor-Only] Draws the Inspector GUI for an Animancer.AnimancerNode.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Interfaces
Base Types
Derived Types
graph BT Type-->Base0["CustomGUI<T>"] Base0-->Base1["Object"] Type-.->Interface0["ICustomGUI"] click Interface0 "/animancer/api/Animancer.Editor/ICustomGUI" Type["AnimancerNodeDrawer<T>"] class Type type-node Derived0["AnimancerLayerDrawer"]-->Type click Derived0 "/animancer/api/Animancer.Editor/AnimancerLayerDrawer" Derived1["AnimancerStateDrawer<T>"]-->Type click Derived1 "/animancer/api/Animancer.Editor/AnimancerStateDrawer_1"

Syntax

public abstract class AnimancerNodeDrawer<T> : CustomGUI<T>, ICustomGUI 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.CustomGUI`1.Value.
static
ExtraLeftPadding 3
Extra padding for the left side of the labels.
static

Properties

Name Value Summary
AutoNormalizeSiblingWeights bool
Indicates whether changing the Animancer.AnimancerNode.Weight should normalize its siblings.
IsExpanded bool
Should the target node's details be expanded in the Inspector?

Methods

Name Value Summary
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.
DoGUI() void
Draws the GUI for the Animancer.Editor.ICustomGUI.Value.
DoHeaderGUI() void
Draws the name and other details of the Animancer.Editor.CustomGUI`1.Value in the GUI.
DoLabelGUI(Rect) 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.AnimancerNodeBase.Speed, and Animancer.AnimancerNode.Weight.
OpenContextMenu() 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.CustomGUI`1.Value.
PopulateContextMenu(GenericMenu) void
Adds functions relevant to the Animancer.Editor.CustomGUI`1.Value.