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

Prefab

Prefab<Options> = Readonly<Options> & object

A kind of entity definePrefab declared: what spawn, spawnLocal and <Entity prefab> take, typed by the body it declares, so spawn returns an entity whose body’s kind its type carries. A copy of one, such as { ...wolf }, is the same prefab.

Name Type
name string
Type Parameter Default type
Options extends PrefabOptions PrefabOptions