AnimationNodeBlendTree

    node resource that contains many blend type nodes.

    This node may contain a sub-tree of any other blend type nodes, such as mix, blend2, blend3, one shot, etc. This is one of the most commonly used roots.

    Tutorials

    Methods

    • 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

    The global offset of all sub-nodes.


    • void connect_node ( input_node, int input_index, output_node )

    Connects the output of an AnimationNode as input for another , at the input port specified by .


    • void disconnect_node ( String input_node, input_index )

    Disconnects the node connected to the specified input.


    Returns the sub-node with the specified name.


    • Vector2 get_node_position ( name ) const

    • bool has_node ( name ) const

    Returns if a sub-node with specified name exists.


    • void remove_node ( String name )

    Removes a sub-node.


    • void rename_node ( name, String new_name )

    Changes the name of a sub-node.