Our animators have just updated Spine from v3.2.x to 3.3.03 !
After importing new exported files to Unity, there will be errors like following:
IndexOutOfRangeException: Array index is out of range.
Spine.MeshAttachment.ComputeWorldVertices (Spine.Slot slot, System.Single[] worldVertices) (at Assets/spine-csharp/Attachments/MeshAttachment.cs:123)
Spine.Unity.SkeletonRenderer.LateUpdate () (at Assets/spine-unity/SkeletonRenderer.cs:555)
Spine.Unity.SkeletonRenderer.Initialize (Boolean overwrite) (at Assets/spine-unity/SkeletonRenderer.cs:203)
...
I have updated spine-runtime (c-sharp & unity) to the latest version on GitHub, but the errors are still there.
I have compared the JSON files generated by old version (3.2.x) with the new ones (3.3.03), and there're a lot of changes, like: mesh => weightedmesh, deform => ffd...
Personally, I think we need new spine-runtime to parse new JSON files.
Please help me to deal with this. Thanks a lot !
16 Jun 2016, 19:22
After digging deeper into JSON file, I realized that the attribute "type" of each node in the skeleton are swapped (mesh <=> weightedmesh).
So I think the problem comes from the exporting process of Spine, which messed with these values.
After changing values of "type" from "mesh" to "weightedmesh" in JSON files manually and vice versa ("weightedmesh" to "mesh"), everything works now.
But I still think that Esoteric needs to take a look at this issue, because there might be other problems.
At least I found a workaround for this at the moment, phewww!