Inherits: AnimationRootNode < AnimationNode < Resource < RefCounted < Object
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.
|
void | add_node ( StringName name, AnimationNode node, Vector2 position=Vector2(0, 0) ) |
void | connect_node ( StringName input_node, int input_index, StringName output_node ) |
void | disconnect_node ( StringName input_node, int input_index ) |
get_node ( StringName name ) const | |
get_node_position ( StringName name ) const | |
has_node ( StringName name ) const | |
void | remove_node ( StringName name ) |
void | rename_node ( StringName name, StringName new_name ) |
void | set_node_position ( StringName name, Vector2 position ) |
Emitted when the input port information is changed.
0
The connection was successful.
1
The input node is null.
2
The specified input port is out of range.
3
The output node is null.
4
Input and output nodes are the same.
5
The specified connection already exists.
Vector2(0, 0)
The global offset of all sub animation nodes.
Adds an AnimationNode at the given position. The name is used to identify the created sub animation node later.
Connects the output of an AnimationNode as input for another AnimationNode, at the input port specified by input_index.
Disconnects the animation node connected to the specified input.
Returns the sub animation node with the specified name.
Returns the position of the sub animation node with the specified name.
Returns true if a sub animation node with specified name exists.
Removes a sub animation node.
Changes the name of a sub animation node.
Modifies the position of a sub animation node.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_animationnodeblendtree.html