- Home /
2D custom sort axis not working at all
Hello everyone. I really need help, I've been struggling with this for 2 days, browsing all the internet, forums, answers, discord servers, to find a solution, without success.
Context I have experience with Unity, however not with tilemaps, so I am making a classic top-down 2D game using tilemaps and I need a way for objects to appear in front or behind other objects depending on their Y position.
Actual problem I tried many ways and none worked, really none. I followed tutorials and posts and most say to use the custom transparency sorting axis to orthographic with 0, 1, 0, which I did, but it doesn't work, it never works, I tried on different scenes, different projects, different versions of Unity, tons of settings for the camera, sprites, tilemaps, I even tried to set it via script, I just can't get it to work, it just will never render them the correct way depeding on their position.
Please I'm really hopeless, I don't know why it works for everyone except me, I do'nt know which setting I missed, I really need help, please
Answer by Kaldrin · Nov 26, 2020 at 11:50 PM
Ok I found the solution here : https://forum.unity.com/threads/transparency-sort-mode-and-lightweight-render-pipeline.651700/?_ga=2.152381881.1484303398.1606129842-985179103.1604252754
Answer by TomArano_Dimenco · Nov 26, 2020 at 04:40 PM
is the draw priority on UI not also based on the order they are in the hierarchy (assuming depth is the same)?
UI draw order is effectively based on the hierarchy, but it is not the case of objects outside of canvases, such as sprites.
Your answer
Follow this Question
Related Questions
Cant see tilemap collider 1 Answer
Pixels per unit with tile palette? 1 Answer
2D tilemap building game top-down,2D TopDown Building game with tilemap 0 Answers
Sprite managed by Sprite Renderer doesn't shows up in play mode 0 Answers
Proper/Standard way to create a top down / isometric sprite sorting solution 1 Answer