Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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


    Apr 8, 2018
    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


    Unity Technologies

    Apr 7, 2015
    A bug report would be very helpful in tracking down this issue!