Forum rules - please read before posting.

Cannot make the sorting map to work based on Pivot

Hi everyone,

Slowly following the 2D primer tutorial and I am now stuck at the sorting map point at around 1:10:00 mark.
I have several objects in the navigation area that I need to sort in order the character either comes in front of them or behind them.
So all my sprites are set to have the pivot at the bottom. Nav meshes and nav holes are set as they should.
Sprite Sort point is set to Pivot.
When I go to ProjectSettings->Graphics there is no longer the option to set the Camera settings to the custom Transparency Sort Mode. Its automatically set to URP. Even if I go to the Build in tab in order to get access there is a warning that says that the built In render settings are not currently in use.

Are there other ways to tackle sorting layers?

PS : The Default Sorting Map slot in the AC Scene settings is empty. I experimented after all the above failed but didnt get anywhere

Thank you!

Comments

  • edited June 13

    With Unity's introduction of the Transparency Sort Mode setting, it's actually no longer necessary to use the Sorting Map to control sprite sorting order. Instead, it's best to use just for the character scaling effect, and use Unity alone for sorting.

    If you're using URP, then your URP settings will have its own copy of that field. Just set it to Custom, and the Axis to (0, 1, 0). You can then uncheck Affect character sorting? in the Sorting Map's Inspector.

    One other thing to look out for: in your Sprite Renderer components (for your characters, background objects etc), make sure that their Sprite Sort Point fields are set to Pivot, and they they share the same Order In Layer values. That will ensure Unity will sort them correctly based on pivot point.

  • Hi Chris, thanks for getting back to me
    I cannot seem to find the Transparency sort mode field when in URP
    This is how my Graphic Settings look like when in URP mode
    https://ibb.co/Fb5HcHqJ

  • I've done some searching. It looks like in order to gain access to the transparency sort mode settings when in URP I need to create a 2D renderer asset file.
    But in the end that doesn't look like it solves my issue since the default axis is 0,1,0 .

  • Ah, yes - you'd need URP with a 2D Renderer to have access to the sort axis.

    The Default axis may not necessarily be 0,1,0, despite that showing as the Custom Axis field by default when greyed out. It should be set to Custom to ensure this is the case.

    If the issue is still occuring, share screenshots of everything (scene, Sorting Map, sprites, Inspectors), and I'll see if I can spot what's wrong.

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.