I'm working on the tk2d unity runtime. And I've been trying to swap the skeletonDataAsset of my player during runtime and I have been having some trouble.
I tested both skeletonDatas individually, setting them pre-load and they work fine.
I tried swaping from data A to data B and had no trouble, but when swapping the other way arround I'm getting the following error:
Failed setting triangles. Some indices are referencing out of bounds vertices.
UnityEngine.Mesh:SetTriangles(Int32[], Int32)
SkeletonComponent:Update() (at Assets/spine-tk2d/Assets/Spine/SkeletonComponent.cs:209)
The only thing I noticed so far is that when I swap from a skeletonData with a higher quadCount count to one with a lower count it crashes, and the other way around it seems to work.
Help is much appreciated.