• 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 . !

    @ant5033 Thanks for the info. Please note that you're not using the latest version of the spine-unity 4.0 runtime (which is 2022-09-26). Please have a try whether upgrading the runtime to this version resolves your issue:
    https://esotericsoftware.com/spine-unity-download#Older-Versions
    (As always, be sure to backup your project before any updates.)