Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/doc/classes/AnimationNodeAnimation.xml
10277 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="AnimationNodeAnimation" inherits="AnimationRootNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3
<brief_description>
4
An input animation for an [AnimationNodeBlendTree].
5
</brief_description>
6
<description>
7
A resource to add to an [AnimationNodeBlendTree]. Only has one output port using the [member animation] property. Used as an input for [AnimationNode]s that blend animations together.
8
</description>
9
<tutorials>
10
<link title="Using AnimationTree">$DOCS_URL/tutorials/animation/animation_tree.html</link>
11
<link title="3D Platformer Demo">https://godotengine.org/asset-library/asset/2748</link>
12
<link title="Third Person Shooter (TPS) Demo">https://godotengine.org/asset-library/asset/2710</link>
13
</tutorials>
14
<members>
15
<member name="advance_on_start" type="bool" setter="set_advance_on_start" getter="is_advance_on_start" default="false">
16
If [code]true[/code], on receiving a request to play an animation from the start, the first frame is not drawn, but only processed, and playback starts from the next frame.
17
See also the notes of [method AnimationPlayer.play].
18
</member>
19
<member name="animation" type="StringName" setter="set_animation" getter="get_animation" default="&amp;&quot;&quot;">
20
Animation to use as an output. It is one of the animations provided by [member AnimationTree.anim_player].
21
</member>
22
<member name="loop_mode" type="int" setter="set_loop_mode" getter="get_loop_mode" enum="Animation.LoopMode">
23
If [member use_custom_timeline] is [code]true[/code], override the loop settings of the original [Animation] resource with the value.
24
[b]Note:[/b] If the [member Animation.loop_mode] isn't set to looping, the [method Animation.track_set_interpolation_loop_wrap] option will not be respected. If you cannot get the expected behavior, consider duplicating the [Animation] resource and changing the loop settings.
25
</member>
26
<member name="play_mode" type="int" setter="set_play_mode" getter="get_play_mode" enum="AnimationNodeAnimation.PlayMode" default="0">
27
Determines the playback direction of the animation.
28
</member>
29
<member name="start_offset" type="float" setter="set_start_offset" getter="get_start_offset">
30
If [member use_custom_timeline] is [code]true[/code], offset the start position of the animation.
31
This is useful for adjusting which foot steps first in 3D walking animations.
32
</member>
33
<member name="stretch_time_scale" type="bool" setter="set_stretch_time_scale" getter="is_stretching_time_scale">
34
If [code]true[/code], scales the time so that the length specified in [member timeline_length] is one cycle.
35
This is useful for matching the periods of walking and running animations.
36
If [code]false[/code], the original animation length is respected. If you set the loop to [member loop_mode], the animation will loop in [member timeline_length].
37
</member>
38
<member name="timeline_length" type="float" setter="set_timeline_length" getter="get_timeline_length">
39
If [member use_custom_timeline] is [code]true[/code], offset the start position of the animation.
40
</member>
41
<member name="use_custom_timeline" type="bool" setter="set_use_custom_timeline" getter="is_using_custom_timeline" default="false">
42
If [code]true[/code], [AnimationNode] provides an animation based on the [Animation] resource with some parameters adjusted.
43
</member>
44
</members>
45
<constants>
46
<constant name="PLAY_MODE_FORWARD" value="0" enum="PlayMode">
47
Plays animation in forward direction.
48
</constant>
49
<constant name="PLAY_MODE_BACKWARD" value="1" enum="PlayMode">
50
Plays animation in backward direction.
51
</constant>
52
</constants>
53
</class>
54
55