Skip to content

Kiln API / kiln / AnimationStateSpec

Interface: AnimationStateSpec ​

One state of the graph: the clip it plays and how.

Properties ​

PropertyTypeDescription
clip?stringThe clip's name (sprite sheet clip, or glTF animation). Default: the state's name.
loop?LoopModeOverrides the clip's loop mode. Default: the sprite clip's mode, or 'loop' for glTF clips.
speed?numberPlayback rate. Default 1.
events?readonly AnimationEventSpec[]Events fired as the playhead crosses them, every loop.