reckfellENGINE

AnimationNodeBlendTree

A sub-tree of many type AnimationNodes used for complex animations. Used by AnimationTree.

On this page
class AnimationNodeBlendTreeReckfellSharpInherits AnimationRootNode

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
# AnimationNodeBlendTree
C#
public AnimationNodeBlendTree();

Properties1

GraphOffsetProperty
# GraphOffset
C#
public Vector2 GraphOffset { get; set; }

The global offset of all sub animation nodes.

Methods12

AddNodevoid
# AddNode
C#
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.

Parameters
NameTypeDefault
nameStringName—
nodeAnimationNode—
positionVector2?default
position

If the parameter is null, then the default value is new Vector2(0.0f, 0.0f).

ConnectNodevoid
# ConnectNode
C#
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.

Parameters
NameTypeDefault
inputNodeStringName—
inputIndexint—
outputNodeStringName—
DisconnectNodevoid
# DisconnectNode
C#
public void DisconnectNode(StringName inputNode, int inputIndex);

Disconnects the animation node connected to the specified input.

Parameters
NameTypeDefault
inputNodeStringName—
inputIndexint—
GetGraphOffsetVector2
# GetGraphOffset
C#
public Vector2 GetGraphOffset();
Returns Vector2
GetNodeAnimationNode
# GetNode
C#
public AnimationNode GetNode(StringName name);

Returns the sub animation node with the specified name.

Parameters
NameTypeDefault
nameStringName—
Returns AnimationNode
GetNodeListReckfell.Collections.Array<StringName>
# GetNodeList
C#
public Reckfell.Collections.Array<StringName> GetNodeList();

Returns a list containing the names of all sub animation nodes in this blend tree.

Returns Reckfell.Collections.Array<StringName>
GetNodePositionVector2
# GetNodePosition
C#
public Vector2 GetNodePosition(StringName name);

Returns the position of the sub animation node with the specified name.

Parameters
NameTypeDefault
nameStringName—
Returns Vector2
HasNodebool
# HasNode
C#
public bool HasNode(StringName name);

Returns true if a sub animation node with specified name exists.

Parameters
NameTypeDefault
nameStringName—
Returns bool
RemoveNodevoid
# RemoveNode
C#
public void RemoveNode(StringName name);

Removes a sub animation node.

Parameters
NameTypeDefault
nameStringName—
RenameNodevoid
# RenameNode
C#
public void RenameNode(StringName name, StringName newName);

Changes the name of a sub animation node.

Parameters
NameTypeDefault
nameStringName—
newNameStringName—
SetGraphOffsetvoid
# SetGraphOffset
C#
public void SetGraphOffset(Vector2 offset);
Parameters
NameTypeDefault
offsetVector2—
SetNodePositionvoid
# SetNodePosition
C#
public void SetNodePosition(StringName name, Vector2 position);

Modifies the position of a sub animation node.

Parameters
NameTypeDefault
nameStringName—
positionVector2—

Signals and events1

NodeChangedEvent
# NodeChanged
C#
public event AnimationNodeBlendTree.NodeChangedEventHandler NodeChanged;

Emitted when the input port information is changed.

Handler parameters
NameTypeDefault
nodeNameStringName—

Fields and constants6

ConnectionErrorConnectionExistsField
# ConnectionErrorConnectionExists
C#
public const long ConnectionErrorConnectionExists = 5;

The specified connection already exists.

ConnectionErrorNoInputField
# ConnectionErrorNoInput
C#
public const long ConnectionErrorNoInput = 1;

The input node is null.

ConnectionErrorNoInputIndexField
# ConnectionErrorNoInputIndex
C#
public const long ConnectionErrorNoInputIndex = 2;

The specified input port is out of range.

ConnectionErrorNoOutputField
# ConnectionErrorNoOutput
C#
public const long ConnectionErrorNoOutput = 3;

The output node is null.

ConnectionErrorSameNodeField
# ConnectionErrorSameNode
C#
public const long ConnectionErrorSameNode = 4;

Input and output nodes are the same.

ConnectionOkField
# ConnectionOk
C#
public const long ConnectionOk = 0;

The connection was successful.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.