API

Interface PlaySpriteAnimationOptions

Optional callbacks and behaviour applied when starting a sprite frame animation.

interface PlaySpriteAnimationOptions {
    onEnd?: () => void;
    removeWhenFinished?: boolean;
}
Index
onEnd?: () => void

Optional. Called once when a non-looping animation reaches its last frame.

removeWhenFinished?: boolean