summaryrefslogtreecommitdiff
path: root/doc/classes/Animation.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Animation.xml')
-rw-r--r--doc/classes/Animation.xml588
1 files changed, 201 insertions, 387 deletions
diff --git a/doc/classes/Animation.xml b/doc/classes/Animation.xml
index ceef16f158..38e02745d4 100644
--- a/doc/classes/Animation.xml
+++ b/doc/classes/Animation.xml
@@ -32,675 +32,489 @@
</tutorials>
<methods>
<method name="add_track">
- <return type="int">
- </return>
- <argument index="0" name="type" type="int" enum="Animation.TrackType">
- </argument>
- <argument index="1" name="at_position" type="int" default="-1">
- </argument>
+ <return type="int" />
+ <argument index="0" name="type" type="int" enum="Animation.TrackType" />
+ <argument index="1" name="at_position" type="int" default="-1" />
<description>
Adds a track to the Animation.
</description>
</method>
<method name="animation_track_get_key_animation" qualifiers="const">
- <return type="StringName">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="StringName" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the animation name at the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Animation Track.
</description>
</method>
<method name="animation_track_insert_key">
- <return type="int">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
- <argument index="2" name="animation" type="StringName">
- </argument>
+ <return type="int" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
+ <argument index="2" name="animation" type="StringName" />
<description>
Inserts a key with value [code]animation[/code] at the given [code]time[/code] (in seconds). The [code]track_idx[/code] must be the index of an Animation Track.
</description>
</method>
<method name="animation_track_set_key_animation">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="animation" type="StringName">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="animation" type="StringName" />
<description>
Sets the key identified by [code]key_idx[/code] to value [code]animation[/code]. The [code]track_idx[/code] must be the index of an Animation Track.
</description>
</method>
<method name="audio_track_get_key_end_offset" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="float" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the end offset of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
End offset is the number of seconds cut off at the ending of the audio stream.
</description>
</method>
<method name="audio_track_get_key_start_offset" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="float" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the start offset of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
Start offset is the number of seconds cut off at the beginning of the audio stream.
</description>
</method>
<method name="audio_track_get_key_stream" qualifiers="const">
- <return type="Resource">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="Resource" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the audio stream of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
</description>
</method>
<method name="audio_track_insert_key">
- <return type="int">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
- <argument index="2" name="stream" type="Resource">
- </argument>
- <argument index="3" name="start_offset" type="float" default="0">
- </argument>
- <argument index="4" name="end_offset" type="float" default="0">
- </argument>
+ <return type="int" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
+ <argument index="2" name="stream" type="Resource" />
+ <argument index="3" name="start_offset" type="float" default="0" />
+ <argument index="4" name="end_offset" type="float" default="0" />
<description>
Inserts an Audio Track key at the given [code]time[/code] in seconds. The [code]track_idx[/code] must be the index of an Audio Track.
[code]stream[/code] is the [AudioStream] resource to play. [code]start_offset[/code] is the number of seconds cut off at the beginning of the audio stream, while [code]end_offset[/code] is at the ending.
</description>
</method>
<method name="audio_track_set_key_end_offset">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="offset" type="float">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="offset" type="float" />
<description>
Sets the end offset of the key identified by [code]key_idx[/code] to value [code]offset[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
</description>
</method>
<method name="audio_track_set_key_start_offset">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="offset" type="float">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="offset" type="float" />
<description>
Sets the start offset of the key identified by [code]key_idx[/code] to value [code]offset[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
</description>
</method>
<method name="audio_track_set_key_stream">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="stream" type="Resource">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="stream" type="Resource" />
<description>
- Sets the stream of the key identified by [code]key_idx[/code] to value [code]offset[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
+ Sets the stream of the key identified by [code]key_idx[/code] to value [code]stream[/code]. The [code]track_idx[/code] must be the index of an Audio Track.
</description>
</method>
<method name="bezier_track_get_key_in_handle" qualifiers="const">
- <return type="Vector2">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="Vector2" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the in handle of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="bezier_track_get_key_out_handle" qualifiers="const">
- <return type="Vector2">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="Vector2" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the out handle of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="bezier_track_get_key_value" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="float" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the value of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="bezier_track_insert_key">
- <return type="int">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
- <argument index="2" name="value" type="float">
- </argument>
- <argument index="3" name="in_handle" type="Vector2" default="Vector2( 0, 0 )">
- </argument>
- <argument index="4" name="out_handle" type="Vector2" default="Vector2( 0, 0 )">
- </argument>
+ <return type="int" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
+ <argument index="2" name="value" type="float" />
+ <argument index="3" name="in_handle" type="Vector2" default="Vector2(0, 0)" />
+ <argument index="4" name="out_handle" type="Vector2" default="Vector2(0, 0)" />
<description>
Inserts a Bezier Track key at the given [code]time[/code] in seconds. The [code]track_idx[/code] must be the index of a Bezier Track.
[code]in_handle[/code] is the left-side weight of the added Bezier curve point, [code]out_handle[/code] is the right-side one, while [code]value[/code] is the actual value at this point.
</description>
</method>
<method name="bezier_track_interpolate" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
+ <return type="float" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
<description>
Returns the interpolated value at the given [code]time[/code] (in seconds). The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="bezier_track_set_key_in_handle">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="in_handle" type="Vector2">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="in_handle" type="Vector2" />
<description>
Sets the in handle of the key identified by [code]key_idx[/code] to value [code]in_handle[/code]. The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="bezier_track_set_key_out_handle">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="out_handle" type="Vector2">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="out_handle" type="Vector2" />
<description>
Sets the out handle of the key identified by [code]key_idx[/code] to value [code]out_handle[/code]. The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="bezier_track_set_key_value">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="value" type="float">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="value" type="float" />
<description>
Sets the value of the key identified by [code]key_idx[/code] to the given value. The [code]track_idx[/code] must be the index of a Bezier Track.
</description>
</method>
<method name="clear">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Clear the animation (clear all tracks and reset all).
</description>
</method>
<method name="copy_track">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="to_animation" type="Animation">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="to_animation" type="Animation" />
<description>
Adds a new track that is a copy of the given track from [code]to_animation[/code].
</description>
</method>
<method name="find_track" qualifiers="const">
- <return type="int">
- </return>
- <argument index="0" name="path" type="NodePath">
- </argument>
+ <return type="int" />
+ <argument index="0" name="path" type="NodePath" />
<description>
Returns the index of the specified track. If the track is not found, return -1.
</description>
</method>
<method name="get_track_count" qualifiers="const">
- <return type="int">
- </return>
+ <return type="int" />
<description>
Returns the amount of tracks in the animation.
</description>
</method>
<method name="method_track_get_key_indices" qualifiers="const">
- <return type="PackedInt32Array">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time_sec" type="float">
- </argument>
- <argument index="2" name="delta" type="float">
- </argument>
+ <return type="PackedInt32Array" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time_sec" type="float" />
+ <argument index="2" name="delta" type="float" />
<description>
Returns all the key indices of a method track, given a position and delta time.
</description>
</method>
<method name="method_track_get_name" qualifiers="const">
- <return type="StringName">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="StringName" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the method name of a method track.
</description>
</method>
<method name="method_track_get_params" qualifiers="const">
- <return type="Array">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="Array" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the arguments values to be called on a method track for a given key in a given track.
</description>
</method>
<method name="remove_track">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Removes a track by specifying the track index.
</description>
</method>
<method name="track_find_key" qualifiers="const">
- <return type="int">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
- <argument index="2" name="exact" type="bool" default="false">
- </argument>
+ <return type="int" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
+ <argument index="2" name="exact" type="bool" default="false" />
<description>
Finds the key index by time in a given track. Optionally, only find it if the exact time is given.
</description>
</method>
<method name="track_get_interpolation_loop_wrap" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Returns [code]true[/code] if the track at [code]idx[/code] wraps the interpolation loop. New tracks wrap the interpolation loop by default.
</description>
</method>
<method name="track_get_interpolation_type" qualifiers="const">
- <return type="int" enum="Animation.InterpolationType">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="int" enum="Animation.InterpolationType" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Returns the interpolation type of a given track.
</description>
</method>
<method name="track_get_key_count" qualifiers="const">
- <return type="int">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="int" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Returns the amount of keys in a given track.
</description>
</method>
<method name="track_get_key_time" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="float" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the time at which the key is located.
</description>
</method>
<method name="track_get_key_transition" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="float" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
- Returns the transition curve (easing) for a specific key (see the built-in math function [method @GDScript.ease]).
+ Returns the transition curve (easing) for a specific key (see the built-in math function [method @GlobalScope.ease]).
</description>
</method>
<method name="track_get_key_value" qualifiers="const">
- <return type="Variant">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="Variant" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Returns the value of a given key in a given track.
</description>
</method>
<method name="track_get_path" qualifiers="const">
- <return type="NodePath">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="NodePath" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Gets the path of a track. For more information on the path format, see [method track_set_path].
</description>
</method>
<method name="track_get_type" qualifiers="const">
- <return type="int" enum="Animation.TrackType">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="int" enum="Animation.TrackType" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Gets the type of a track.
</description>
</method>
<method name="track_insert_key">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
- <argument index="2" name="key" type="Variant">
- </argument>
- <argument index="3" name="transition" type="float" default="1">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
+ <argument index="2" name="key" type="Variant" />
+ <argument index="3" name="transition" type="float" default="1" />
<description>
Insert a generic key in a given track.
</description>
</method>
<method name="track_is_enabled" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Returns [code]true[/code] if the track at index [code]idx[/code] is enabled.
</description>
</method>
<method name="track_is_imported" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Returns [code]true[/code] if the given track is imported. Else, return [code]false[/code].
</description>
</method>
<method name="track_move_down">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Moves a track down.
</description>
</method>
<method name="track_move_to">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="to_idx" type="int">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="to_idx" type="int" />
<description>
Changes the index position of track [code]idx[/code] to the one defined in [code]to_idx[/code].
</description>
</method>
<method name="track_move_up">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Moves a track up.
</description>
</method>
<method name="track_remove_key">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
<description>
Removes a key by index in a given track.
</description>
</method>
- <method name="track_remove_key_at_position">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="position" type="float">
- </argument>
+ <method name="track_remove_key_at_time">
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
<description>
- Removes a key by position (seconds) in a given track.
+ Removes a key at [code]time[/code] in a given track.
</description>
</method>
<method name="track_set_enabled">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="enabled" type="bool">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="enabled" type="bool" />
<description>
Enables/disables the given track. Tracks are enabled by default.
</description>
</method>
<method name="track_set_imported">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="imported" type="bool">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="imported" type="bool" />
<description>
Sets the given track as imported or not.
</description>
</method>
<method name="track_set_interpolation_loop_wrap">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="interpolation" type="bool">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="interpolation" type="bool" />
<description>
If [code]true[/code], the track at [code]idx[/code] wraps the interpolation loop.
</description>
</method>
<method name="track_set_interpolation_type">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="interpolation" type="int" enum="Animation.InterpolationType">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="interpolation" type="int" enum="Animation.InterpolationType" />
<description>
Sets the interpolation type of a given track.
</description>
</method>
<method name="track_set_key_time">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="time" type="float">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="time" type="float" />
<description>
Sets the time of an existing key.
</description>
</method>
<method name="track_set_key_transition">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key_idx" type="int">
- </argument>
- <argument index="2" name="transition" type="float">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key_idx" type="int" />
+ <argument index="2" name="transition" type="float" />
<description>
- Sets the transition curve (easing) for a specific key (see the built-in math function [method @GDScript.ease]).
+ Sets the transition curve (easing) for a specific key (see the built-in math function [method @GlobalScope.ease]).
</description>
</method>
<method name="track_set_key_value">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="key" type="int">
- </argument>
- <argument index="2" name="value" type="Variant">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="key" type="int" />
+ <argument index="2" name="value" type="Variant" />
<description>
Sets the value of an existing key.
</description>
</method>
<method name="track_set_path">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="path" type="NodePath">
- </argument>
- <description>
- Sets the path of a track. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by [code]":"[/code].
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="path" type="NodePath" />
+ <description>
+ Sets the path of a track. Paths must be valid scene-tree paths to a node and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by [code]":"[/code].
For example, [code]"character/skeleton:ankle"[/code] or [code]"character/mesh:transform/local"[/code].
</description>
</method>
<method name="track_swap">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="with_idx" type="int">
- </argument>
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="with_idx" type="int" />
<description>
Swaps the track [code]idx[/code]'s index position with the track [code]with_idx[/code].
</description>
</method>
<method name="transform_track_insert_key">
- <return type="int">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time" type="float">
- </argument>
- <argument index="2" name="location" type="Vector3">
- </argument>
- <argument index="3" name="rotation" type="Quat">
- </argument>
- <argument index="4" name="scale" type="Vector3">
- </argument>
+ <return type="int" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time" type="float" />
+ <argument index="2" name="location" type="Vector3" />
+ <argument index="3" name="rotation" type="Quaternion" />
+ <argument index="4" name="scale" type="Vector3" />
<description>
Insert a transform key for a transform track.
</description>
</method>
<method name="transform_track_interpolate" qualifiers="const">
- <return type="Array">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time_sec" type="float">
- </argument>
+ <return type="Array" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time_sec" type="float" />
<description>
- Returns the interpolated value of a transform track at a given time (in seconds). An array consisting of 3 elements: position ([Vector3]), rotation ([Quat]) and scale ([Vector3]).
+ Returns the interpolated value of a transform track at a given time (in seconds). An array consisting of 3 elements: position ([Vector3]), rotation ([Quaternion]) and scale ([Vector3]).
</description>
</method>
<method name="value_track_get_key_indices" qualifiers="const">
- <return type="PackedInt32Array">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time_sec" type="float">
- </argument>
- <argument index="2" name="delta" type="float">
- </argument>
+ <return type="PackedInt32Array" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time_sec" type="float" />
+ <argument index="2" name="delta" type="float" />
<description>
Returns all the key indices of a value track, given a position and delta time.
</description>
</method>
<method name="value_track_get_update_mode" qualifiers="const">
- <return type="int" enum="Animation.UpdateMode">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
+ <return type="int" enum="Animation.UpdateMode" />
+ <argument index="0" name="track_idx" type="int" />
<description>
Returns the update mode of a value track.
</description>
</method>
- <method name="value_track_set_update_mode">
- <return type="void">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="mode" type="int" enum="Animation.UpdateMode">
- </argument>
+ <method name="value_track_interpolate" qualifiers="const">
+ <return type="Variant" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="time_sec" type="float" />
<description>
- Sets the update mode (see [enum UpdateMode]) of a value track.
+ Returns the interpolated value at the given time (in seconds). The [code]track_idx[/code] must be the index of a value track.
</description>
</method>
- <method name="value_track_interpolate" qualifiers="const">
- <return type="float">
- </return>
- <argument index="0" name="track_idx" type="int">
- </argument>
- <argument index="1" name="time_sec" type="float">
- </argument>
+ <method name="value_track_set_update_mode">
+ <return type="void" />
+ <argument index="0" name="track_idx" type="int" />
+ <argument index="1" name="mode" type="int" enum="Animation.UpdateMode" />
<description>
- Returns the interpolated value at the given time (in seconds). The [code]track_idx[/code] must be the index of a value track.
+ Sets the update mode (see [enum UpdateMode]) of a value track.
</description>
</method>
</methods>
@@ -710,7 +524,7 @@
[b]Note:[/b] Length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping.
</member>
<member name="loop" type="bool" setter="set_loop" getter="has_loop" default="false">
- A flag indicating that the animation must loop. This is uses for correct interpolation of animation cycles, and for hinting the player that it must restart the animation.
+ A flag indicating that the animation must loop. This is used for correct interpolation of animation cycles, and for hinting the player that it must restart the animation.
</member>
<member name="step" type="float" setter="set_step" getter="get_step" default="0.1">
The animation step value.
@@ -727,8 +541,8 @@
<constant name="TYPE_VALUE" value="0" enum="TrackType">
Value tracks set values in node properties, but only those which can be Interpolated.
</constant>
- <constant name="TYPE_TRANSFORM" value="1" enum="TrackType">
- Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are interpolated.
+ <constant name="TYPE_TRANSFORM3D" value="1" enum="TrackType">
+ Transform3D tracks are used to change node local transforms or skeleton pose bones of 3D nodes. Transitions are interpolated.
</constant>
<constant name="TYPE_METHOD" value="2" enum="TrackType">
Method tracks call functions with given arguments per key.