Forum rules - please read before posting.

Sprites Unity Complex 2D - sorting map and order of sprites in the rig

edited June 2024 in Technical Q&A

I am using a 2D character animated using Sprites Unity Complex, but I am having issues with the correct sorting order of the character sprites.

The specific sprites of the rig have their order in layer set in Sprite renderer. The things that should be in the back have lower numbers of the order in layer. The sorting layer is set as default.

This all works nicely when Affect character sorting remains unchecked in the Sorting Map Inspector.
However, I also have levels with multiple layers, where the character can walk behind something. There, I need to check the Affect character sorting in the Sorting Map. But then the layers of the sprites set in the rig become ignored and appear in a totally incorrect (seems random) order.

What am I doing wrong?

Comments

  • Rely on a Sorting Group component, attached to the same object as the Follow Sorting Map. If one is detected, that'll be the only "Order in Layer" value that gets (and needs to be) affected.

  • Thank you, the parent rig was missing this component, although the individual sprites had it. I added the missing component and everything is sorted nicely!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.