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

ScratchTraitOptions

What trait takes beside its schema.

Type Parameter
Field extends string
Property Type Description
entities? readonly Field[] The fields that hold an entity, or a list of them, which a destroy releases, as defineTrait’s entities names them: a field left out keeps a dead handle, which koota reads by index as whichever entity takes it next.