Method PlayAnimation
PlayAnimation(Animation, float, bool, TimeSpan)
Plays the specified animation.
public Task PlayAnimation(Animation animation, float animSpeed, bool queueAsAction = false, TimeSpan duration = default)
Parameters
animationAnimationConstant value representing the animation to play.
animSpeedfloatSpeed to play the animation.
queueAsActionboolIf true, enqueues animation playback in the object's action queue.
durationTimeSpanDuration to keep animating. Not used in fire and forget animations.