AnimationNodeBlendTree
A sub-tree of many type AnimationNodes used for complex animations. Used by AnimationTree.
A sub-tree of many type AnimationNodes used for complex animations. Used by AnimationTree.
This animation node may contain a sub-tree of any other type animation nodes, such as AnimationNodeTransition, AnimationNodeBlend2, AnimationNodeBlend3, AnimationNodeOneShot, etc. This is one of the most commonly used animation node roots.
An AnimationNodeOutput node named output is created by default.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
AnimationNodeBlendTreeConstructor
public AnimationNodeBlendTree();Properties1
GraphOffsetProperty
public Vector2 GraphOffset { get; set; }The global offset of all sub animation nodes.
Methods12
AddNodevoid
public void AddNode(StringName name, AnimationNode node, Vector2? position = default);Adds an AnimationNode at the given position. The name is used to identify the created sub animation node later.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
node | AnimationNode | — |
position | Vector2? | default |
positionIf the parameter is null, then the default value is new Vector2(0.0f, 0.0f).
ConnectNodevoid
public void ConnectNode(StringName inputNode, int inputIndex, StringName outputNode);Connects the output of an AnimationNode as input for another AnimationNode, at the input port specified by input_index.
| Name | Type | Default |
|---|---|---|
inputNode | StringName | — |
inputIndex | int | — |
outputNode | StringName | — |
DisconnectNodevoid
public void DisconnectNode(StringName inputNode, int inputIndex);Disconnects the animation node connected to the specified input.
| Name | Type | Default |
|---|---|---|
inputNode | StringName | — |
inputIndex | int | — |
GetGraphOffsetVector2
public Vector2 GetGraphOffset();Vector2GetNodeAnimationNode
public AnimationNode GetNode(StringName name);Returns the sub animation node with the specified name.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
AnimationNodeGetNodeListReckfell.Collections.Array<StringName>
public Reckfell.Collections.Array<StringName> GetNodeList();Returns a list containing the names of all sub animation nodes in this blend tree.
Reckfell.Collections.Array<StringName>GetNodePositionVector2
public Vector2 GetNodePosition(StringName name);Returns the position of the sub animation node with the specified name.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
Vector2HasNodebool
public bool HasNode(StringName name);Returns true if a sub animation node with specified name exists.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
boolRemoveNodevoid
public void RemoveNode(StringName name);Removes a sub animation node.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
RenameNodevoid
public void RenameNode(StringName name, StringName newName);Changes the name of a sub animation node.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
newName | StringName | — |
SetGraphOffsetvoid
public void SetGraphOffset(Vector2 offset);| Name | Type | Default |
|---|---|---|
offset | Vector2 | — |
SetNodePositionvoid
public void SetNodePosition(StringName name, Vector2 position);Modifies the position of a sub animation node.
| Name | Type | Default |
|---|---|---|
name | StringName | — |
position | Vector2 | — |
Signals and events1
NodeChangedEvent
public event AnimationNodeBlendTree.NodeChangedEventHandler NodeChanged;Emitted when the input port information is changed.
| Name | Type | Default |
|---|---|---|
nodeName | StringName | — |
Fields and constants6
ConnectionErrorConnectionExistsField
public const long ConnectionErrorConnectionExists = 5;The specified connection already exists.
ConnectionErrorNoInputField
public const long ConnectionErrorNoInput = 1;The input node is null.
ConnectionErrorNoInputIndexField
public const long ConnectionErrorNoInputIndex = 2;The specified input port is out of range.
ConnectionErrorNoOutputField
public const long ConnectionErrorNoOutput = 3;The output node is null.
ConnectionErrorSameNodeField
public const long ConnectionErrorSameNode = 4;Input and output nodes are the same.
ConnectionOkField
public const long ConnectionOk = 0;The connection was successful.