• Runtimes
  • Character's Face Disappears depending on Another Character's Position

I'm using the Spine Runtime from spine-unity-4.1-2022-07-01.unitypackage on Unity 2021.3.29f1.

I'm running into a very strange bug where sometimes my character's faces disappear. For a long time, I thought it was just the typical missing keyframes or something like that, but I finally got a stable repro case and the behavior is a bit more bizarre.

As you can see, as I move the player character around (another spine character), the face of the character on the top right appears or disappears. I also noticed that the face appears and disappears as I change the game camera zoom.

It feels like this is a sorting issue, but it is not fixed with the "Fix Draw Order" option.

I've tried the latest 4.1 runtime and the issue changes slightly, but doesn't render properly. Instead of her face disappearing, her hair starts to render in front of her face.

Any ideas to resolve this would be greatly appreciated!

Related Discussions
...

The issue you're experiencing with the character's face disappearing or rendering incorrectly seems to be related to sorting problems in Unity, especially when using the Universal Render Pipeline (URP). This is a common issue when multiple Spine characters are involved, and it can be exacerbated by Unity's batching system. To address this, you can try adding a SortingGroup component to each of your Spine character GameObjects. This component helps manage the sorting order of multiple renderers, which can prevent the incorrect draw order you're seeing. Additionally, ensure that your materials and shaders are correctly set up for URP, and consider using the "Advanced - Fix Draw Order" option in the SkeletonAnimation component if you haven't already. If these steps don't resolve the issue, you might need to create a minimal Unity project to further isolate the problem.

Thank you for the quick response. Adding sorting groups to all spine characters seems to have resolved my issue. Thank you!