Class · inherits Instance
AnimationNodeDefinition
A single node within an animation graph, connected to other nodes through named input pins.
About AnimationNodeDefinition
Represents one node in an animation graph, the node-based system that combines
animation clips and poses at runtime. Its
NodeType determines how the node
processes animation, such as playing a clip, blending or overlaying two
inputs, masking, or adjusting playback speed, while its
NodeId uniquely identifies it within
the graph. Nodes connect to one another through named input pins; changing a
node's type resets its input pins to the default set for that type.
Properties 1
NodeType
: AnimationNodeTypeThe kind of node this definition represents within its animation graph.Determines how the node processes animation within the graph, for example a clip source, an additive or overlay blend, a mask, or a speed adjustment (see
AnimationNodeType). Defaults toInvalidNode. Changing this value resets the node's input pins to the default set defined for the new type.
Methods 4
AddInputPin
(pin: string) → ()Appends a named input pin to the end of the ordered input pin list.Appends a named input pin to the end of the ordered input pin list. The order in which pins are added is significant for nodes such as
AnimationNodeType.SequenceNode,AnimationNodeType.RandomSequenceNode, andAnimationNodeType.PrioritySelectNode.GetOrderedInputPinNames
() → ArrayReturns the current ordered list of input pin names.RemoveInputPin
(pin: string) → ()Removes the first input pin matching the given name from the ordered pin list.SetOrderedInputPinNames
(pins: Array) → ()Bulk-replaces the entire ordered input pin list.Bulk-replaces the entire ordered input pin list. Use this to reorder pins or apply batch updates in a single call.
Events 1
InputPinsChanged
AnimationNodeDefinition.InputPinsChanged:Connect(function())Fires whenever the ordered input pin list is modified.
AnimationNodeDefinition also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.