---
url: /api/kiln/variables/SpriteAnimator.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / 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`.
