ElroonD

Hi There,
on the SkeletonData component, you can enable/disable slots individually, and on SkeletonAnimation component, you can set the sorting layer.
my question is... is there a way to set a different sorting layer to one specific slot? I know there's only one MeshRenderer for the object, but maybe each slot is reading the mesh renderer's layer and is assigned by that? so maybe it could be overriden?
Thanks.

p.s. the runtime Spine I'm using is 3.8
ElroonD
  • Postovi: 2

Jamez0r

Yes, check out the Skeleton Render Separator - spine-unity Runtime Documentation: SkeletonRenderSeparator

I use it for separating the shadows underneath my characters in my top-down game (layering them underneath the main body of the character). It might take a second to get the workflow down (using a specific slot in the Draw Order in Spine as the 'separation point', so that slots above it and slots below it are separated), but it is very handy. And you can use multiple separators of course.
Avatar
Jamez0r
  • Postovi: 324

Harald

Thanks as always for answering @Jamez0r!
Avatar
Harald

Harri
  • Postovi: 3589


Natrag na Unity