Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

SpriteGridClipOptions

A clip a grid sheet declares.

Property Type Default value Description
direction? ClipDirection ClipDirection.Forward Plays the frames, or the tag’s, backwards.
durationSeconds number | readonly number[] undefined -
frames readonly number[] undefined The grid’s frames in play order, counted left to right, then top to bottom, from 0.
loop? ClipLoopMode undefined How the clip repeats. Left out, the tag’s own, or ClipLoopMode.Loop for declared frames.
marks? Readonly<Record<string, number | readonly number[]>> undefined Marks by position in frames, such as { hit: 2 }, or { footstep: [1, 3] } for one on two frames.