diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-04-08 11:36:15 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 11:36:15 -0300 |
commit | a6c9ccf0075aec6790fbe938bac8b434e5db01f8 (patch) | |
tree | 102f39d0897a6acbe21507a77deef9df1bad9b22 /doc/classes | |
parent | 20e68fef856a56346f5044fc532975ee329fb25c (diff) | |
parent | 5ef88cf577ad45b4dece733f1bb1350f7c93547e (diff) |
Merge pull request #17150 from robfram/check-animation-playing-backwards
Added `get_playing_speed` method to AnimationPlayer, returning the actual playing speed of the animation being played
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/AnimationPlayer.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/AnimationPlayer.xml b/doc/classes/AnimationPlayer.xml index 178c714a20..ed859169fd 100644 --- a/doc/classes/AnimationPlayer.xml +++ b/doc/classes/AnimationPlayer.xml @@ -103,6 +103,14 @@ Get the blend time (in seconds) between two animations, referenced by their names. </description> </method> + <method name="get_playing_speed" qualifiers="const"> + <return type="float"> + </return> + <description> + Get the actual playing speed of current animation or 0 if not playing. This speed is the [code]playback_speed[/code] property multiplied by [code]custom_speed[/code] argument specified when calling the [code]play[/code] method. + </description> + </method> + <method name="has_animation" qualifiers="const"> <return type="bool"> </return> |