Search Unity

Question What factors dirty Tilemap chunk?

Discussion in '2D' started by Lo-renzo, Nov 18, 2020.

  1. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,511
    Changing the Tile obviously does, but does changing the Matrix4x4 transform..?
    Others causes of dirtying?
     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    For the TilemapRenderer, it would be anything that makes a change in the mesh for the Tilemap chunk. This would include transform changes in the Tile, the Tilemap GameObject or settings on the Grid. Changing the Sprite of the Tile would dirty it as well.
     
    Lo-renzo likes this.