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
- Type: Class
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
- Inherits from: Renderer
[RequireComponent(typeof(Tilemap))]public sealed class TilemapRenderer : Renderer
Remarks
This class is a script interface for a tile map renderer component.
Properties
Property | Description |
|---|---|
| chunkCullingBounds | Bounds used for culling of Tilemap chunks. |
| chunkSize | Size in number of tiles of each chunk created by the TilemapRenderer. |
| detectChunkCullingBounds | Returns whether the TilemapRenderer automatically detects the bounds to extend chunk culling by. |
| maskInteraction | Specifies how the Tilemap interacts with the masks. |
| maxChunkCount | Maximum number of chunks the TilemapRenderer caches in memory. |
| maxFrameAge | Maximum number of frames the TilemapRenderer keeps unused chunks in memory. |
| mode | The mode in which the TilemapRenderer batches the tiles for rendering. |
| sortOrder | Active sort order for the TilemapRenderer. |
Methods
Method | Description |
|---|---|
| GetShaderUserValue | Returns the custom value assigned to this renderer. |
| SetShaderUserValue | Assign a custom value to this renderer. |
Enums
Enum | Description |
|---|---|
| TilemapRenderer.DetectChunkCullingBounds | Returns whether the TilemapRenderer automatically detects the bounds to extend chunk culling by. |
| TilemapRenderer.Mode | Determines how the TilemapRenderer should batch the sprites from tiles for rendering. |
| TilemapRenderer.SortOrder | Sort order for all tiles rendered by the TilemapRenderer. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |