Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TilemapRenderer

The tile map renderer is used to render the tile map marked out by a tile map component and a grid component.
Read time 9 minutesLast updated 2 days ago

Definition

[RequireComponent(typeof(Tilemap))]public sealed class TilemapRenderer : Renderer

Remarks

This class is a script interface for a tile map renderer component.

Properties

Property

Description

chunkCullingBoundsBounds used for culling of Tilemap chunks.
chunkSizeSize in number of tiles of each chunk created by the TilemapRenderer.
detectChunkCullingBoundsReturns whether the TilemapRenderer automatically detects the bounds to extend chunk culling by.
maskInteractionSpecifies how the Tilemap interacts with the masks.
maxChunkCountMaximum number of chunks the TilemapRenderer caches in memory.
maxFrameAgeMaximum number of frames the TilemapRenderer keeps unused chunks in memory.
modeThe mode in which the TilemapRenderer batches the tiles for rendering.
sortOrderActive sort order for the TilemapRenderer.

Methods

Method

Description

GetShaderUserValueReturns the custom value assigned to this renderer.
SetShaderUserValueAssign a custom value to this renderer.

Enums

Enum

Description

TilemapRenderer.DetectChunkCullingBoundsReturns whether the TilemapRenderer automatically detects the bounds to extend chunk culling by.
TilemapRenderer.ModeDetermines how the TilemapRenderer should batch the sprites from tiles for rendering.
TilemapRenderer.SortOrderSort order for all tiles rendered by the TilemapRenderer.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.