Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Isometric sorting when characters are on multiple layers

Discussion in '2D' started by Grey_Haven, Aug 28, 2021.

  1. Grey_Haven

    Grey_Haven

    Joined:
    Oct 30, 2020
    Posts:
    8
    Hey all, haven't been able to find any related threads on this, so here goes.

    I'm making a 2D isometric game, and I'm animating my sprites using the IK system. My character sprite is separated into various components (arms, legs, head) within the game object, and each of those components is on a different sorting layer, so that the character renders properly. The issue I'm coming across is that having several layers on the character messes with the environment sorting. If I have an object that I want my character to be able to move in front of and behind of, the multiple layers on the character sprite means that something is going to be rendering wrong. Does anyone know of possible solutions to a problem like this?

    Thanks in advance.
     
  2. Grey_Haven

    Grey_Haven

    Joined:
    Oct 30, 2020
    Posts:
    8
    I figured it out. Using a sorting group on the root game object allows the whole tree to be rendered on a single layer.
     
    Carlanga92 and Kurt-Dekker like this.