I am trying to achieve Y sorting on my 2D topdown game with a sprite and multiple tilemaps.
Let me explain, I designed my level with 2 tilemaps : Walls and design
Walls
Design
What I tried
I put my player and the 2 tilemaps on the same sorting layer and the same sorting order
On the 2 tilemaps I set the tilemap renderer mode to : individual
On projects settings > Graphics I set the transparency sort mode to Custom axis
and Transparency sort axis to (0,1,0)
My problem
The walls tilemap is rendered on top of the design tilemap
But if I change the sorting layer
or the order in layer
to make the design layer to be rendered on top of the walls layer, it will always be on top of the player too and the y sorting wont work
My question
So my questions are :
how can I make the design tilemap to be rendered on top of the walls tilemap without changing their
Sorting layer
ororder in layer
?Is there any other ways to achieve y sorting ?