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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
TileMapLayerProps |
Returns
Section titled “Returns”Element
Example
Section titled “Example”<TileMapLayer tileSet={grass} tiles={[[0, 1, 1], [12, 12, 12]]} />