SpriteAnimFrame
Defined in: animation/SpriteAnimator.ts:18
Properties
Section titled “Properties”duration?
Section titled “duration?”
optionalduration?:number
Defined in: animation/SpriteAnimator.ts:20
pivot?
Section titled “pivot?”
optionalpivot?: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
optionalsize?: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
Section titled “texture”texture:
number
Defined in: animation/SpriteAnimator.ts:19
uvOffset?
Section titled “uvOffset?”
optionaluvOffset?:object
Defined in: animation/SpriteAnimator.ts:21
x:
number
y:
number
uvScale?
Section titled “uvScale?”
optionaluvScale?:object
Defined in: animation/SpriteAnimator.ts:22
x:
number
y:
number