Function playBillboardSpriteAnimation
-
playBillboardSpriteAnimation(
manager: SpriteAnimationManager,
handle: BillboardSpriteHandle,
from: number,
to: number,
loop: boolean,
delayMs: number,
options?: PlaySpriteAnimationOptions,
): SpriteFrameAnimationParameters
- manager: SpriteAnimationManager
Animation manager that drives the playback.
- handle: BillboardSpriteHandle
Stable handle of the billboard sprite to animate.
- from: number
First frame index of the range.
- to: number
Last frame index of the range.
- loop: boolean
When
true, the animation restarts after reachingto. - delayMs: number
Delay in milliseconds between frame steps.
Optionaloptions: PlaySpriteAnimationOptionsOptional end callback and removal behaviour.
Returns SpriteFrameAnimation
The created sprite frame animation.
- manager: SpriteAnimationManager
Plays a frame animation on a billboard sprite addressed by its stable handle. The handle is resolved each tick, so the animation survives swap-remove reindexing.