Skip to content

Kiln API / kiln / SpriteAnimator

Variable: SpriteAnimator ​

ts
const SpriteAnimator: Trait<() => SpriteAnimation>;

Plays sprite-sheet clips through an animation graph. Add it with spriteAnimator(sheet, { graph }); the plugin gives the entity a textured quad (MeshRef). Rows from Mut(SpriteAnimator) take set(param, v), trigger(name), play(state), flipX.