I’m making a game with 45° overhead perspective. In order to make GameObjects appear behind/in front of each other, I changed their SortingOrder based on their y-position. It worked fine when I used sprite sheets for characters.
However, I’m now using multiple sprites for each character (based on Fantasy Heroes Character Editor), which uses 82 different SpriteRenderers per Character. It uses SortingOrder to render the various body parts & equipment correctly. That means that I can no longer change SortingOrder based on y-position, and I get results as shown below.
The only way I can think of to solve this, is to set SortingOrder = -position.y*1000+InternalBodyPartIndex. It seems like a really bad idea, as each frame I would need to update SortingOrder of 82 Objects PER CHARACTER.
Any suggestions?