- Home /
Tilemap sorting of individual tiles
Hello.
When looking for how to do depth sorting of tiles for isometric or top-down games I keep coming across this thread: https://forum.unity.com/threads/sort-order-of-individual-tiles.447541/
It explains that, on the Tilemap there's an option to render tiles individually. That seems to be gone by now. The problem I'm trying to solve is that of the player character being in front of the railing when it's below it on the y axis and being behind the railing when it's above it on the y axis.
How it behaves with tilemaps:
How it should behave (here with individual sprite renderers):
I got this to work with the custom sorting on y axis in the graphics settings and on single renderers as you can see above. The ideal case is to get this behaviour with tiles on a tilemap.
Is my case hopeless now or are there more options I could check out to get the Tilemap depth sort this correctly?
Any update on this ? There is something that came to $$anonymous$$d but might not really be worth the trouble, You can crate a custom brush that that spawn game objects with sprite renders, that way you can attach a scripts on them that changes the sorting order based on the Y axis. I have NOT tested to see if this will work.
Your answer
Follow this Question
Related Questions
Sorting Layer Conflict 1 Answer
Sorting irregular objects in 2D isometric view 0 Answers
Improve sorting-order change in 2D top-down 1 Answer