Skip to content

SpriteAnimFrame

Defined in: animation/SpriteAnimator.ts:18

optional duration?: number

Defined in: animation/SpriteAnimator.ts:20


optional pivot?: object

Defined in: animation/SpriteAnimator.ts:29

The anchor this frame renders with, in Sprite.pivot’s own space — resolved at load time from the clip’s per-frame/clip-wide anchors. Absent on EVERY frame of a clip that authors no anchors, which is what keeps playback from touching a pivot the entity owns.

x: number

y: number


optional size?: object

Defined in: animation/SpriteAnimator.ts:36

The size this frame renders at, in world units — resolved at load time from the clip’s sizing mode and the frame’s natural size. Absent on EVERY frame of a clip that does not own size, which is what keeps playback from resizing a sprite the entity sized itself.

x: number

y: number


texture: number

Defined in: animation/SpriteAnimator.ts:19


optional uvOffset?: object

Defined in: animation/SpriteAnimator.ts:21

x: number

y: number


optional uvScale?: object

Defined in: animation/SpriteAnimator.ts:22

x: number

y: number