Forum rules - please read before posting.

Unity's new 2D animation package and sorting map/layer problem

edited May 2019 in Technical Q&A

Hi,
I am new to AC. Using Unity 2018.3.8 and AC 1.67.5. I am using Unity's preview package 2D animation with bones/skinning and have used a PSB file with layers to skin/rig a detective character. I then used this PSB file with the Character Wizard. I made animations that works fine, but when i Implement a sorting map somehow the characters legs is in front of his coat. I see in the hiearchy that every bone and sprite has different order in layers. Is it possible to make the character act as one order in layer?

Correct:
https://www.dropbox.com/s/wcdkab90gd8cer8/correct.png?dl=0

Wrong:
https://www.dropbox.com/s/rqsk4xwbkbk2w7a/error.png?dl=0

Hierarchy:
https://www.dropbox.com/s/92pz43l8q20ibha/hierarchy.png?dl=0

I really love AC and would really like to be able to use the 2D animation package rather than spriteswapping.
Hope you can help me.

Comments

  • I may have sortet it out my self. I created an empty sprite and used the character wizard on that file - and then made the psb as a child of the sprite. I then checked offset original order in the sorting script on the empty sprite.

  • Welcome to the community, @theJitron.

    Yes - checking both Offset original Order? and Also affect children? on the Follow Sorting Map component is the way to keep the relative "Sorting Order" values of child sprites intact.

    The 2D Demo's player character, Brain2D, uses this technique to ensure his shadow sprite is always drawn underneath him.

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.