Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

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

Discussion in '2D Experimental Preview' started by Lo-renzo, Feb 10, 2020.

  1. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    224
    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:
    453
    A bug report would be very helpful in tracking down this issue!
     
unityunity