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

VoxelGridOptions

What voxels takes for cubes built from a grid field.

Property Type Default value Description
cellSize number | Triple undefined Metres each cube is on a side, as Unity’s Grid.cellSize, or [x, y, z] for a box.
empty? readonly number[] [0] The values that are not solid, such as air, water and flowers.
grid GridField<GridArray, 3> undefined A three-dimensional grid field of the same entity, as ChunkTrait.fields.blocks.