The Tilemap Renderer component renders the Tilemap in the Scene. Unity creates Tilemaps with the Tilemap Renderer attached by default. The Tilemap Renderer can:
The Render Mode affects the sorting of Tilemap Sprites when rendered.
Chunk Mode is the default rendering mode of the Tilemap Renderer:
When set to Chunk Mode, the Tilemap Renderer handles Sprites on a Tilemap in batches and renders them together. They’re treated as a single sort item when sorted in the 2D Transparent Queue. While this reduces draw calls, other renderers can’t render between any part of the Tilemap, preventing other rendered Sprites from interweaving with Tilemap Sprites.
In Chunk Mode, the Tilemap Renderer isn’t able to sort Tiles from multiple textures individually and doesn’t render the tile sprites consistently (refer to the example below).
타일맵을 구성하는 개별 스프라이트를 모두 하나의 스프라이트 아틀라스로 패킹하면 이러한 문제를 해결할 수 있습니다. 이를 수행하려면 다음 단계를 따르십시오.
Create a Sprite Atlas from the Assets menu (go to: Atlas > Create > Sprite Atlas).
Add the Sprites to the Sprite Atlas by dragging them to the Objects for Packing list in the Atlas’ Inspector window.
Click Pack Preview. Unity packs the Sprites into the Sprite Atlas during Play mode, and correctly sorts and renders them. This is only visible in the Editor during Play mode.
In Individual Mode, the Tilemap Renderer sorts and renders the Sprites on a Tilemap with consideration of other Renderers in the Scene, such as the Sprite Renderers and Mesh Renderers. Use this mode if other Renderers interact with Sprites and objects on the Tilemap.
In this mode, the Tilemap Renderer sorts sprites based on their position on the Tilemap and the sorting properties set in the Tilemap Renderer. For example, this allows a character sprite to go in-between obstacle sprites (refer to the example below).
Using the same example in Chunk Mode, character sprites might get hidden behind ground sprites:
Using Individual Mode might reduce performance as there is more overhead when rendering each sprite individually on the Tilemap.
To sort and render tile sprites on an Isometric Z as Y Tilemap, set the Transparency Sort Axis to a Custom Axis. To do this:
Refer to the page on Creating an Isometric Tilemap for more information about the Transparency Sort Axis settings.