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

TileMapLayer

TileMapLayer(props): Element

A grid of tiles: one entity holding the voxel collider of its solid tiles, in a room and on every page, drawn on a page as one mesh for each 16 by 16 chunk of each tile set. A scene component like Entity, not a view: the walk, the navigation’s obstacle bake and a camera’s bounds read its colliders as any fixed body’s. The map’s ground draws under it where it has no tile.

Parameter Type
props TileMapLayerProps

Element

<TileMapLayer tileSet={grass} tiles={[[0, 1, 1], [12, 12, 12]]} />