SpriteAnimPlayOpt:

Sprite animation configuration when playing.

groupComponents

subgroupComponent Types

loop?: boolean

If this anim should be played in loop.

pingpong?: boolean

When looping should it move back instead of go to start frame again.

speed?: number

This anim's speed in frames per second.

preventRestart?: boolean

If the animation should not restart from frame 1 and t=0 if it is already playing.

defaultfalse

onEnd?(): void

Runs when this animation ends.