Hi,
I'm trying to use the skeleton render separator in order to put an object visually between two parts of a spine object.
So I followed this tutorial : https://github.com/pharan/spine-unity-docs/blob/master/SkeletonRenderSeparator.md
But when I do it , there is a problem : on the skeleton part renderers some materials are not linked. If I link it by hand an press play, it's set to none again and I get this error :
NullReferenceException: Object reference not set to an instance of an object
Spine.Unity.MeshGeneration.ArraysSubmeshSetMeshGenerator+SmartMesh.StructureDoesntMatch (Spine.ExposedList`1 attachments, Spine.ExposedList`1 instructions) (at Assets/Plugins/Spine/spine-unity/Mesh Generation/Arrays/ArraysSubmeshSetMeshGenerator.cs:181)
Spine.Unity.MeshGeneration.ArraysSubmeshSetMeshGenerator.GenerateMesh (Spine.ExposedList`1 instructions, Int32 startSubmesh, Int32 endSubmesh) (at Assets/Plugins/Spine/spine-unity/Mesh Generation/Arrays/ArraysSubmeshSetMeshGenerator.cs:109)
Which is a null material problem. The animations does not work and the spine object is broken.
Then if I look to the main mesh renderer there is now 2 materials with one set to null, and I cannot change material count or value because it's automatically reset.
Even when I just Disable/Re-Enable the Skeleton Render Separator I got this error and cannot set the material count to 1.
Am I missing something? Thanks in advance