diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-23 09:08:17 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-23 09:08:17 +0100 |
commit | ecd895a8602ce67818af06226e804bd843108a6a (patch) | |
tree | f41afb253608783765a1b959d833e8bdca7c54a6 /doc | |
parent | 8eec9f7d3c65f269839a204b018d4f1b9b593f01 (diff) | |
parent | 4cd144d5fb45827e27231eb158ee512d0cd698ac (diff) |
Merge pull request #70278 from TokageItLab/add-animation-started-finished-signal-to-tree
Add `animation_started/finished` signals to `AnimationTree` and fix time accuracy in StateMachine
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/AnimationTree.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/AnimationTree.xml b/doc/classes/AnimationTree.xml index 21f4b37741..a17a727d7e 100644 --- a/doc/classes/AnimationTree.xml +++ b/doc/classes/AnimationTree.xml @@ -111,11 +111,25 @@ </member> </members> <signals> + <signal name="animation_finished"> + <param index="0" name="anim_name" type="StringName" /> + <description> + Notifies when an animation finished playing. + [b]Note:[/b] This signal is not emitted if an animation is looping or aborted. Also be aware of the possibility of unseen playback by sync and xfade. + </description> + </signal> <signal name="animation_player_changed"> <description> Emitted when the [member anim_player] is changed. </description> </signal> + <signal name="animation_started"> + <param index="0" name="anim_name" type="StringName" /> + <description> + Notifies when an animation starts playing. + [b]Note:[/b] This signal is not emitted if an animation is looping or playbacked from the middle. Also be aware of the possibility of unseen playback by sync and xfade. + </description> + </signal> </signals> <constants> <constant name="ANIMATION_PROCESS_PHYSICS" value="0" enum="AnimationProcessCallback"> |