Function playSprite2DIndexAnimation
-
playSprite2DIndexAnimation(
manager: SpriteAnimationManager,
layer: Sprite2DLayer,
index: number,
from: number,
to: number,
loop: boolean,
delayMs: number,
options?: PlaySpriteAnimationOptions,
): SpriteFrameAnimationParameters
- manager: SpriteAnimationManager
- layer: Sprite2DLayer
- index: number
- from: number
- to: number
- loop: boolean
- delayMs: number
Optionaloptions: PlaySpriteAnimationOptions
Returns SpriteFrameAnimation
Play a frame animation against a raw Sprite2D slot index.
This is the zero-handle, slot-based path for structurally stable layers. If the slot is swap-removed externally, the animation follows whatever sprite later occupies the same index. Use
playSprite2DAnimationwith a handle when animation must track a stable sprite identity across removals.