Forum rules - please read before posting.

Layer order issue nesting?

Hi,

I have an NPC prefab within an NPC prefab, as the root NPC carries the nested one.

However, whatever I do, when the scene starts, the nested NPC is put on order layer 2 and thus put in front of the root NPC.

See screenshots, what am I doing wrong?

Comments

  • Are you using follow sortmap script. you can set it so the child does not follow the order of parent ?

    try looking there as a start :)
  • Try using two FollowSortingMap components - one for each NPC - and making sure that Also affect children? is unchecked.

    Then check Offset original Order? on the child NPC, and give the Sprite Renderer an order of -1.  This will mean his order will always be one less than the parent.
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.