Appearance
Kiln API / kiln / AnimationStateSpec
Interface: AnimationStateSpec
One state of the graph: the clip it plays and how.
Properties
| Property | Type | Description |
|---|---|---|
clip? | string | The clip's name (sprite sheet clip, or glTF animation). Default: the state's name. |
loop? | LoopMode | Overrides the clip's loop mode. Default: the sprite clip's mode, or 'loop' for glTF clips. |
speed? | number | Playback rate. Default 1. |
events? | readonly AnimationEventSpec[] | Events fired as the playhead crosses them, every loop. |