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

VectorFieldsOptions

VectorFieldsOptions<Record> = [UnshownVectorPath<Record>] extends [never] ? [keyof HoldingVectorClasses<Record>] extends [never] ? object : object : object

A trait’s vectors: required where a field holds a vector its default may not show, and naming each such field with the class it holds, so a page, a tool’s write or a rollback reads its list of numbers back as that class. A field left out is named in the type error as a missing key. A field typed as a shape a vector fits, such as Vector3Like, may be named, and reads back as plain numbers where it is not.

Type Parameter
Record