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

registerModel

registerModel(name, model): Disposer

Names a GLTF file for <Entity model>: a manifest’s entry, which carries the size a walker drawn as it is cut to, a bare url, which carries none, or either with the material the model wears, such as { ...models.goblin, material: dissolve }. The return forgets it.

Parameter Type
name string
model string | ModelRegistration

Disposer