Skip to content

AnimationDef

Defined in: renderer/src/AnimationController.ts:8

Definition for a single named animation.

optional anchor?: object

Defined in: renderer/src/AnimationController.ts:18

Per-animation anchor override.

x: number

y: number


optional frames?: Texture<TextureSource<any>>[]

Defined in: renderer/src/AnimationController.ts:12

Raw frame textures (not serializable). Resolved from source if omitted.


optional loop?: boolean

Defined in: renderer/src/AnimationController.ts:16

Whether the animation loops. Default: true.


optional source?: FrameSource

Defined in: renderer/src/AnimationController.ts:10

Serializable frame source (sprite strip or atlas).


speed: number

Defined in: renderer/src/AnimationController.ts:14

PixiJS animationSpeed value (e.g. 0.15).