Hi folks... thanks for getting back to me... So i've just been putting a load of Debug.Logs in SkeletonJson.ReadAnimation...
this is the line it's breaking on
// Set changed items.
drawOrder[originalIndex + (int)(float)offsetMap["offset"]] = originalIndex++;
the values for offsetMap and originalIndex don't seem to whacky in my example (6 + 8 ) but obviously that's over the limit for that drawOrder array.
here's the actual readout from Xcode
Error reading skeleton JSON file for SkeletonData asset: George
Array index is out of range.
at Spine.SkeletonJson.ReadAnimation (System.String name, System.Collections.Generic.Dictionary`2 map, Spine.SkeletonData skeletonData) [0x00000] in <filename unknown>:0
at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x00000] in <filename unknown>:0
at SkeletonDataAsset.GetSkeletonData (Boolean quiet) [0x00000] in <filename unknown>:0
at SkeletonRenderer.Reset () [0x00000] in <filename unknown>:0
at SkeletonAnimation.Reset () [0x00000] in <filename unknown>:0
at VortexEffect.OnRenderImage (UnityEngine.RenderTexture source, UnityEngine.RenderTexture destination) [0x00000] in <filename unknown>:0
at SkeletonRenderer.OnEnable () [0x00000] in <filename unknown>:0
at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
it looks possible from those other threads that if i get the animator to remove the draw order keys and try putting them back in (?!) ... it'll fix it... maybe ... but a better solution if you have one would be nice 🙂
thanks,
Ross
FIXED:
here's how...
I replaced the line
drawOrder[originalIndex + (int)(float)offsetMap["offset"]] = originalIndex++;
with
int hack = originalIndex + (int)(float)offsetMap["offset"];
drawOrder[hack] = originalIndex++;
problem solved! so, something to do with the 64bit stuff then...