• Unity
  • Layering issues with Spine objects

I'm experiencing layering issues with 2 Spine characters. You can take a look in this 1-min video: https://vimeo.com/533345882. The password is "wbw".

In the video, you'll note a few things:
0:20 –– The front part of the pink umbrella disappears
0:34 –– The front part of the pink umbrella disappears
0:38 –– The facial features on the creature on the right disappear, and a portion of the pink umbrella disappears
0:47 –– The front part of the pink umbrella disappears
0:50 –– The front part of the pink umbrella disappears

General info:

  • The video is taken from Unity 2019.4.16f1 running on Mac
  • The 2 creatures are alternate skins of the same Spine object
  • I'm able to successfully call their animations separately, but certain track-dependent animations, when played on one creature, appear to affect the draw order of the other creature despite the two being separate instances
  • Potentially the speech bubbles that appear throughout the video are also interfering with the draw order

Happy to provide any additional information that may be helpful.

Thanks!

Jason

Related Discussions
...
  • 編集済み

I see the weird draw order, but I can't say what is causing it. Each skeleton instance has its own list of slots for the draw order. Maybe it's that batching gets screwed up? Let's see if Harald has any ideas. If not, we'd need an absolutely-as-simple-as-possible Unity project that shows the problem so we can see if firsthand.

7日 後

Thanks for the reply!

As a next step, are we waiting on Harald to weigh in? Or should I put together a simple Unity project?

Thanks again.

Sorry for the late reply, I missed that the question was still unresolved after Nate's reply.

Are you using Universal Render Pipeline (URP)? It could be a similar problem (too aggressive batching by Unity messing up your draw order) as described in these forum postings here:
multiple characters on scene issue
multi-dim-material order in layers error with depth writing

Does adding a SortingGroup component or enabling Advanced - Fix Draw Order at your SkeletonAnimation component resolve the issue for you? If not, could you please create a minimal Unity project?