AnimationNodeBlendTree

Inherits: AnimationRootNode < AnimationNode < Resource < Reference < Object AnimationTree node resource that contains many blend type nodes.

Description

AnimationNodeTransition, AnimationNodeBlend2, AnimationNodeBlend3, AnimationNodeOneShot, etc. This is one of the most commonly used roots. AnimationNodeOutput node named output is created by default.

Tutorials

  • Using AnimationTree

    Properties

    Methods

    Constants

  • CONNECTION_OK = 0 —- The connection was successful.
  • CONNECTION_ERROR_NO_INPUT = 1 —- The input node is null.
  • CONNECTION_ERROR_NO_INPUT_INDEX = 2 —- The specified input port is out of range.
  • CONNECTION_ERROR_NO_OUTPUT = 3 —- The output node is null.
  • CONNECTION_ERROR_SAME_NODE = 4 —- Input and output nodes are the same.
  • CONNECTION_ERROR_CONNECTION_EXISTS = 5 —- The specified connection already exists.

    Property Descriptions

  • Vector2 graph_offset The global offset of all sub-nodes.

    Method Descriptions

  • add_node ( String name, AnimationNode node, Vector2 position=Vector2( 0, 0 ) ) AnimationNode at the given position. The name is used to identify the created sub-node later.

  • connect_node ( String input_node, int input_index, String output_node ) AnimationNode as input for another AnimationNode, at the input port specified by input_index.

  • disconnect_node ( String input_node, int input_index ) Disconnects the node connected to the specified input.

  • AnimationNode get_node ( String name ) const name.

  • Vector2 get_node_position ( String name ) const name.

  • bool has_node ( String name ) const true if a sub-node with specified name exists.

  • remove_node ( String name ) Removes a sub-node.

  • rename_node ( String name, String new_name ) Changes the name of a sub-node.

  • set_node_position ( String name, Vector2 position ) Modifies the position of a sub-node.