Question by
Daedalus216 · Jun 14, 2017 at 01:40 PM ·
spritedistanceoverlapsortingsprite renderer
Sorting layers without far objects overlapping closer ones?
My game consists of 2D player and NPC sprites in a 3D environment, and it would be handy to be able to use the sorting layer functionality to deal with armour and clothing added to those sprites, so that the armour and player can exist in a single plane without rendering issue. However as its in 3D space, it would be counter productive if it means the armour of far away NPCs will be rendered infront of a closer player or NPC. What is the best way to go about achieving this effect (with or without sorting layers)?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612124151im_/https://answers.unity.com/themes/thub/images/avi.jpg)