Search Unity

Tile Map 2D chunked tilemaps sometimes fail to respect sorting order / order in layer

Discussion in '2D Experimental Preview' started by THE_MEDICI, Feb 10, 2020.

  1. THE_MEDICI

    THE_MEDICI

    Joined:
    Apr 8, 2018
    Posts:
    45
    Is this a known issue or does it need a bug report?

    In some places, I can scroll the camera in and out and the chunked tilemaps fight one another for which renders on top of the other. The popping you see is the dirt overdrawing the grass, then the grass overdrawing onto the dirt. Grass is always supposed to trump dirt due to order in layer or sorting layer.

    Chunk bug - Copy.gif

    I know that putting using two separate textures within same tilemap is not supported because it cannot chunk correctly. However, these are two seperate Tilemaps, each associated with a single texture, so the SortingLayer and Order In Layer should be respected.

    If one is set to Individual mode, there's no issue, so it seems to be chunking.
    I've tried both Auto and Manual chunk culling bounds: it makes no difference.
    If I create a SpriteAtlas with both textures in it, it solves the issue, however I am planning on using different materials soon.
     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    390
    A bug report would be very helpful in tracking down this issue!
     
unityunity