Add capture() and play_with_capture() as substitute of update capture

This commit is contained in:
Silc Lizard (Tokage) Renew
2024-01-06 02:40:58 +09:00
parent 4e990cd7e5
commit 85d66cb4e8
7 changed files with 222 additions and 5 deletions

View File

@@ -651,7 +651,7 @@
Update at the keyframes.
</constant>
<constant name="UPDATE_CAPTURE" value="2" enum="UpdateMode">
Same as linear interpolation, but also interpolates from the current value (i.e. dynamically at runtime) if the first key isn't at 0 seconds.
Same as [constant UPDATE_CONTINUOUS] but works as a flag to capture the value of the current object and perform interpolation in some methods. See also [method AnimationMixer.capture] and [method AnimationPlayer.play_with_capture].
</constant>
<constant name="LOOP_NONE" value="0" enum="LoopMode">
At both ends of the animation, the animation will stop playing.