Work in progress. These docs describe Spawnite at launch, and some parts are still being built.
| Property |
Type |
Default value |
Description |
animation? |
string |
undefined |
The name of the clip it plays, among clips; none when left out or when no clip has the name. |
clips? |
readonly AnimationClip[] |
undefined |
The clips animation names: the file’s own when left out, or clips made for it elsewhere, such as a VRMA file’s for a VRM avatar. |
loop? |
boolean |
true |
Whether the clip starts again at its end. false plays it once and holds its last frame; a change leaves the clip where it is. |
onLoad? |
(bounds) => void |
undefined |
Takes the model’s bounds as it stands, in the space of what holds it, once it is drawn. |
onPlay? |
(action) => void |
undefined |
Takes the action that plays the clip, and null once it stops, for a page that pauses or scrubs it. |
url |
string |
undefined |
The GLB or VRM file to draw: a URL the page can fetch, a blob URL included. |