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

PrefabOptions

PrefabOptions = PrefabBaseOptions & object & BodyDeclaration

What a prefab declares: its traits, its model, and its body and collider, a collider with no body being a fixed body. A convexHull() with no points is its model’s hull, so it names a model.

Name Type Description
model? string The registered model each entity is drawn as.