How to manage Sprite layer on an Isometric Tilemap

Hi,

I recently start to develop on unity ( I’m a total newbie) and I have difficulties managing how my character sprite must appear on the screen.

I’m using isometric Y as Z tilemaps.
I have 3 layers of tilemap

  • Ground (Ground tiles): Layer 0
  • Overlay (To display things on the map): Layer 1
  • Overlap (Everything upper than the ground): Layer 2

And I have a sprite on layer 2 as well.

Here is the result:

6659836--761647--upload_2020-12-26_13-20-15.png

6659836--761650--upload_2020-12-26_13-20-37.png

Of course, if I change the layer of the sprite, it will be always below the walls.

How can I do to render my sprite first when it’s behind a wall and second when it’s above?
Is there a way to do it without a custom script?

Thanks in advance for your help mates :slight_smile:

This manual should help you get all the settings correct :slight_smile: Unity - Manual: Tilemap Renderer Modes

Something not state but also important is that your character use Pivot sorting on your character SpriteRenderer and you’ve placed the pivot down by the feet so it’s sorting by the feet not the center of the body (assuming your character is a single sprite).

Thanks a lot for your help. It worked !