AnimationHandle | CraytaKit
Skip to main content

AnimationHandle

Functions

Function NameReturn TypeDescriptionTag
IsPlaying()booleanreturns true if this animation is still playingNone
GetPlaybackSpeed()numberget the current playback speed of the animationNone
SetPlaybackSpeed(number speed)Noneset the current playback speed of the animationNone
IsLooping()booleanget whether this animation is set to loopNone
SetLooping(bool looping)Noneset whether this animation should loopNone
Stop()Nonestops/cancels the animation on this mesh, this will invalidate this handle as the animation it relates to is no longer playingNone
SetProgress(number normalizedTime)NoneSet the progress of the animation. 0.0 = the start of the animation, 0.5 = 50% of the way through the animation, 1.0 = the end of the animation, etcNone
GetProgress()numberReturns the progress of the animation. 0.0 = the start of the animation, 0.5 = 50% of the way through the animation, 1.0 = the end of the animation, etc

Examples

© 2024 CraytaKit