Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

sc.spawnGrid (deprecated)

Deprecated — superseded by the entityOps / scene / appearance toolboxes. Spawn each cell via the entity API (entity.spawn + component.add("Model", …)) and place it on the grid yourself.

Lays out a rectangular grid of entities on the ground plane, each cell a spawned model. Columns and rows set the dimensions, spacing sets the gap between cells, and each entity takes the shared name with an index appended. Returns the array of generated entity ids, ready to feed into a batch operation. Reach for it for tiled floors, checkerboards, or any regular field of props.