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:
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
This manual should help you get all the settings correct 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).
Lo-renzo:
This manual should help you get all the settings correct https://docs.unity3d.com/Manual/Tilemap-Isometric-RenderModes.html
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 !