Hello,
I struggle with a unity sorting problem with 2D Sprites Renderer. I fail to understand why in the image below, my crusader is behind the tower. Since i chose to sort by pivot point and the crusader pivot is below the tower one, the crusader should be draw in front of the tower thanks to the Sprite Renderer sorting system.
A bit of context :
- I’m using orthographic camera
- I set in the Graphic settings (Transparency mode : Custom View, Transparency sort axis : (0,1,0) but it does not seem to have an impact)
- It works in the general case but not in a pixel perfect way
I notice that more the tower is far from the center point (0,0,0) more this kind of bug appeared. When the tower is near (0,0,0), everything works well.
I followed this doc : Unity - Manual: 2D Sorting
I am missing something ? someone can explain me this behavior in this unity native sprite sorting ?