Optional
options: Partial<TilemapRendererOptions>Array of tile data split into chunks
Array of tiles. ID 0 (zero) represents empty space.
The height of the tilemap (in tiles)
The render layer
Define a mask color for the image
Define the opacity of the mask color between 1 and 0
Change the opacity between 1 and 0
TRUE for smooth pixels (not recommended for pixel art)
The height of the tile to render
The Tileset instance
The width of the tile to render
Define a color for tinting the tiles
The width of the tilemap (in tiles)
The TilemapRenderer component renders 2D tile-based maps to the screen.
It uses a tileset image as a source for individual tiles, which are arranged according to a provided array of tile IDs.
The component supports features like tinting, masking, opacity control, and custom tile dimensions.
Maps can be rendered in chunks for improved performance with large tilemaps, and tiles can be assigned to specific render layers.
Each tile is referenced by an ID, with 0 representing empty space.
Example