• Runtimes
  • Sorting Layer 레이어순서문제.

Skills using image animation
There are monsters that use spines.

Although the skill's Sorting Layer is higher than that of Monster Spine,
Monsters are being drawn above skills.

Sorting Layer and Sorting Group are not solving the problem
how can i solve it?


This is the order of the layers.


This is the animation skill layer.


This is the layer of Monster Spine.


This is an image in which the SortingGroup component is added to the parent object of the monster spine.


this is my problem

Related Discussions
...

Sorry to hear you're having troubles. Unfortunately we could not reproduce the issue you are describing, adding a SortingGroup component at a SkeletonAnimation GameObject and changing the parameters like Order in Layer accordingly let us move the skeleton in front and behind a SpriteRenderer. Also changing values at the SpriteRenderer behaved as expected.

Which version of the spine-unity runtime are you using (name of the unitypackage, also listed in Assets/Spine/Version.txt)?
Which version of Unity are you using?

  • ant5033님이 이에 답장했습니다.

    Harald

    The version of Unity is 2021.3.14f1
    The spine-unity version is spine-unity-4.0-2022-06-09.unitypackage . !