2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-11-05 14:02:42 +00:00
<class name= "AnimationTreePlayer" inherits= "Node" version= "3.5" >
2017-09-12 20:42:36 +00:00
<brief_description >
2020-09-15 22:13:32 +00:00
[i]Deprecated.[/i] Animation player that uses a node graph for blending animations. Superseded by [AnimationTree].
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2020-09-15 22:13:32 +00:00
[i]Deprecated.[/i] A node graph tool for blending multiple animations bound to an [AnimationPlayer]. Especially useful for animating characters or other skeleton-based rigs. It can combine several animations to form a desired pose.
2017-12-23 12:45:01 +00:00
It takes [Animation]s from an [AnimationPlayer] node and mixes them depending on the graph.
2020-09-15 22:13:32 +00:00
See [AnimationTree] for a more full-featured replacement of this node.
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2021-08-12 14:58:38 +00:00
<link > https://docs.godotengine.org/en/3.4/tutorials/animation/animation_tree.html</link>
2017-09-12 20:42:36 +00:00
</tutorials>
<methods >
<method name= "add_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "type" type= "int" enum= "AnimationTreePlayer.NodeType" />
<argument index= "1" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Adds a [code]type[/code] node to the graph with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "advance" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "delta" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Shifts position in the animation timeline. [code]delta[/code] is the time in seconds to shift. Events between the current frame and [code]delta[/code] are handled.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "animation_node_get_animation" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Animation" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Returns the [AnimationPlayer]'s [Animation] bound to the [AnimationTreePlayer]'s animation node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "animation_node_get_master_animation" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "String" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-23 12:45:01 +00:00
Returns the name of the [member master_player]'s [Animation] bound to this animation node.
2017-09-12 20:42:36 +00:00
</description>
</method>
2018-05-28 12:53:15 +00:00
<method name= "animation_node_get_position" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2018-05-28 12:53:15 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the absolute playback timestamp of the animation node with name [code]id[/code].
2018-05-28 12:53:15 +00:00
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "animation_node_set_animation" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "animation" type= "Animation" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Binds a new [Animation] from the [member master_player] to the [AnimationTreePlayer]'s animation node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "animation_node_set_filter_path" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "path" type= "NodePath" />
<argument index= "2" name= "enable" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
If [code]enable[/code] is [code]true[/code], the animation node with ID [code]id[/code] turns off the track modifying the property at [code]path[/code]. The modified node's children continue to animate.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "animation_node_set_master_animation" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "source" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-23 12:45:01 +00:00
Binds the [Animation] named [code]source[/code] from [member master_player] to the animation node [code]id[/code]. Recalculates caches.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "are_nodes_connected" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "dst_id" type= "String" />
<argument index= "2" name= "dst_input_idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
Returns whether node [code]id[/code] and [code]dst_id[/code] are connected at the specified slot.
</description>
</method>
<method name= "blend2_node_get_amount" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Returns the blend amount of a Blend2 node given its name.
</description>
</method>
<method name= "blend2_node_set_amount" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "blend" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
Sets the blend amount of a Blend2 node given its name and value.
2020-01-23 10:14:14 +00:00
A Blend2 node blends two animations (A and B) with the amount between 0 and 1.
At 0, output is input A. Towards 1, the influence of A gets lessened, the influence of B gets raised. At 1, output is input B.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "blend2_node_set_filter_path" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "path" type= "NodePath" />
<argument index= "2" name= "enable" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
If [code]enable[/code] is [code]true[/code], the Blend2 node with name [code]id[/code] turns off the track modifying the property at [code]path[/code]. The modified node's children continue to animate.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "blend3_node_get_amount" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Returns the blend amount of a Blend3 node given its name.
</description>
</method>
<method name= "blend3_node_set_amount" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "blend" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
Sets the blend amount of a Blend3 node given its name and value.
2020-01-23 10:14:14 +00:00
A Blend3 Node blends three animations (A, B-, B+) with the amount between -1 and 1.
At -1, output is input B-. From -1 to 0, the influence of B- gets lessened, the influence of A gets raised and the influence of B+ is 0. At 0, output is input A. From 0 to 1, the influence of A gets lessened, the influence of B+ gets raised and the influence of B+ is 0. At 1, output is input B+.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "blend4_node_get_amount" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Returns the blend amount of a Blend4 node given its name.
</description>
</method>
<method name= "blend4_node_set_amount" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "blend" type= "Vector2" />
2017-09-12 20:42:36 +00:00
<description >
Sets the blend amount of a Blend4 node given its name and value.
2017-12-23 12:45:01 +00:00
A Blend4 Node blends two pairs of animations.
2020-01-23 10:14:14 +00:00
The two pairs are blended like Blend2 and then added together.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "connect_nodes" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "Error" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "dst_id" type= "String" />
<argument index= "2" name= "dst_input_idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
Connects node [code]id[/code] to [code]dst_id[/code] at the specified input slot.
</description>
</method>
<method name= "disconnect_nodes" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "dst_input_idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
Disconnects nodes connected to [code]id[/code] at the specified input slot.
</description>
</method>
<method name= "get_node_list" >
2021-07-30 13:28:05 +00:00
<return type= "PoolStringArray" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-23 12:45:01 +00:00
Returns a [PoolStringArray] containing the name of all nodes.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "mix_node_get_amount" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the mix amount of a Mix node given its name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "mix_node_set_amount" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "ratio" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the mix amount of a Mix node given its name and value.
2019-06-21 23:04:47 +00:00
A Mix node adds input b to input a by the amount given by ratio.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "node_exists" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "node" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Check if a node exists (by name).
</description>
</method>
<method name= "node_get_input_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2019-05-24 02:15:43 +00:00
Returns the input count for a given node. Different types of nodes have different amount of inputs.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "node_get_input_source" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "String" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2019-05-24 02:15:43 +00:00
Returns the input source for a given node input.
2017-09-12 20:42:36 +00:00
</description>
</method>
2017-09-10 13:37:49 +00:00
<method name= "node_get_position" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Returns position of a node in the graph given its name.
</description>
</method>
<method name= "node_get_type" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "AnimationTreePlayer.NodeType" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2019-12-06 22:09:20 +00:00
Gets the node type, will return from [enum NodeType] enum.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "node_rename" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "Error" />
<argument index= "0" name= "node" type= "String" />
<argument index= "1" name= "new_name" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Renames a node in the graph.
2017-09-12 20:42:36 +00:00
</description>
</method>
2017-09-10 13:37:49 +00:00
<method name= "node_set_position" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "screen_position" type= "Vector2" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the position of a node in the graph given its name and position.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_get_autorestart_delay" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the autostart delay of a OneShot node given its name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_get_autorestart_random_delay" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the autostart random delay of a OneShot node given its name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_get_fadein_time" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the fade in time of a OneShot node given its name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_get_fadeout_time" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the fade out time of a OneShot node given its name.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_has_autorestart" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Returns whether a OneShot node will auto restart given its name.
</description>
</method>
<method name= "oneshot_node_is_active" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Returns whether a OneShot node is active given its name.
</description>
</method>
<method name= "oneshot_node_set_autorestart" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "enable" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the autorestart property of a OneShot node given its name and value.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_set_autorestart_delay" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "delay_sec" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the autorestart delay of a OneShot node given its name and value in seconds.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_set_autorestart_random_delay" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "rand_sec" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the autorestart random delay of a OneShot node given its name and value in seconds.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_set_fadein_time" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "time_sec" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the fade in time of a OneShot node given its name and value in seconds.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_set_fadeout_time" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "time_sec" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Sets the fade out time of a OneShot node given its name and value in seconds.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_set_filter_path" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "path" type= "NodePath" />
<argument index= "2" name= "enable" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
If [code]enable[/code] is [code]true[/code], the OneShot node with ID [code]id[/code] turns off the track modifying the property at [code]path[/code]. The modified node's children continue to animate.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "oneshot_node_start" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
Starts a OneShot node given its name.
</description>
</method>
<method name= "oneshot_node_stop" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Stops the OneShot node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "recompute_caches" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Manually recalculates the cache of track information generated from animation nodes. Needed when external sources modify the animation nodes' state.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "remove_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Removes the animation node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "reset" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Resets this [AnimationTreePlayer].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "timescale_node_get_scale" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the time scale value of the TimeScale node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "timescale_node_set_scale" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "scale" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Sets the time scale of the TimeScale node with name [code]id[/code] to [code]scale[/code].
2020-01-23 10:14:14 +00:00
The TimeScale node is used to speed [Animation]s up if the scale is above 1 or slow them down if it is below 1.
2017-12-23 12:45:01 +00:00
If applied after a blend or mix, affects all input animations to that blend or mix.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "timeseek_node_seek" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "seconds" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2019-06-21 23:04:47 +00:00
Sets the time seek value of the TimeSeek node with name [code]id[/code] to [code]seconds[/code].
2017-12-23 12:45:01 +00:00
This functions as a seek in the [Animation] or the blend or mix of [Animation]s input in it.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_delete_input" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "input_idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Deletes the input at [code]input_idx[/code] for the transition node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_get_current" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Returns the index of the currently evaluated input for the transition node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_get_input_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns the number of inputs for the transition node with name [code]id[/code]. You can add inputs by right-clicking on the transition node.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_get_xfade_time" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "id" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Returns the cross fade time for the transition node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_has_input_auto_advance" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "input_idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2020-01-23 10:14:14 +00:00
Returns [code]true[/code] if the input at [code]input_idx[/code] on the transition node with name [code]id[/code] is set to automatically advance to the next input upon completion.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_set_current" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "input_idx" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
The transition node with name [code]id[/code] sets its current input at [code]input_idx[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_set_input_auto_advance" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "input_idx" type= "int" />
<argument index= "2" name= "enable" type= "bool" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
The transition node with name [code]id[/code] advances to its next input automatically when the input at [code]input_idx[/code] completes.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_set_input_count" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "count" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
Resizes the number of inputs available for the transition node with name [code]id[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "transition_node_set_xfade_time" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "String" />
<argument index= "1" name= "time_sec" type= "float" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-06 03:25:37 +00:00
The transition node with name [code]id[/code] sets its cross fade time to [code]time_sec[/code].
2017-09-12 20:42:36 +00:00
</description>
</method>
</methods>
<members >
2019-06-29 10:38:01 +00:00
<member name= "active" type= "bool" setter= "set_active" getter= "is_active" default= "false" >
2019-06-29 13:24:23 +00:00
If [code]true[/code], the [AnimationTreePlayer] is able to play animations.
2017-12-06 03:25:37 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "base_path" type= "NodePath" setter= "set_base_path" getter= "get_base_path" default= "NodePath("..")" >
2019-06-29 13:24:23 +00:00
The node from which to relatively access other nodes.
2020-01-23 10:14:14 +00:00
It accesses the bones, so it should point to the same node the [AnimationPlayer] would point its Root Node at.
2017-12-06 03:25:37 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "master_player" type= "NodePath" setter= "set_master_player" getter= "get_master_player" default= "NodePath("")" >
2019-03-29 22:37:35 +00:00
The path to the [AnimationPlayer] from which this [AnimationTreePlayer] binds animations to animation nodes.
2020-01-23 10:14:14 +00:00
Once set, [Animation] nodes can be added to the [AnimationTreePlayer].
2017-12-09 23:43:30 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "playback_process_mode" type= "int" setter= "set_animation_process_mode" getter= "get_animation_process_mode" enum= "AnimationTreePlayer.AnimationProcessMode" default= "1" >
2019-06-29 13:24:23 +00:00
The thread in which to update animations.
2017-09-12 20:42:36 +00:00
</member>
</members>
<constants >
2017-11-24 22:16:30 +00:00
<constant name= "NODE_OUTPUT" value= "0" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Output node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_ANIMATION" value= "1" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Animation node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_ONESHOT" value= "2" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
OneShot node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_MIX" value= "3" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Mix node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_BLEND2" value= "4" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Blend2 node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_BLEND3" value= "5" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Blend3 node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_BLEND4" value= "6" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Blend4 node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_TIMESCALE" value= "7" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
TimeScale node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_TIMESEEK" value= "8" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
TimeSeek node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "NODE_TRANSITION" value= "9" enum= "NodeType" >
2017-09-12 20:42:36 +00:00
Transition node.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ANIMATION_PROCESS_PHYSICS" value= "0" enum= "AnimationProcessMode" >
2017-12-06 03:25:37 +00:00
Process animation during the physics process. This is especially useful when animating physics bodies.
2017-09-15 23:46:14 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ANIMATION_PROCESS_IDLE" value= "1" enum= "AnimationProcessMode" >
2017-12-06 03:25:37 +00:00
Process animation during the idle process.
2017-09-15 23:46:14 +00:00
</constant>
2017-09-12 20:42:36 +00:00
</constants>
</class>