Recently our teams have encountered some errors in importing the Spine json into unity. The error message indicate some index outside the bounds of the array.

After some testing, I found that it occurs in the animation where we have bezier curve in parameters including RGBA and transform constraint mix value. Even though in the editor, the curve appears to be changing between 0 and 100%, sometimes it goes beyond 100% and it is hard to tell which part the curve excess 100% between keyframes.

So we just manually turned all the RGBA and constraint mix keyframes into linear tweening and it fixed the problem.

It will be great if we can have the problem fixed by Spine.
Error reading skeleton JSON file for SkeletonData asset: hujiao_SkeletonData
Error reading animation: skill/skill1_2
Index was outside the bounds of the array.
at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x01390] in D:\TheMiao\code\Assets\Plugins\Spine\Runtime\spine-csharp\SkeletonJson.cs:368
at Spine.Unity.SkeletonDataAsset.ReadSkeletonData (System.String text, Spine.AttachmentLoader attachmentLoader, System.Single scale) [0x00017] in D:\TheMiao\code\Assets\Plugins\Spine\Runtime\spine-unity\Asset Types\SkeletonDataAsset.cs:258
at Spine.Unity.SkeletonDataAsset.GetSkeletonData (System.Boolean quiet) [0x000c4] in D:\TheMiao\code\Assets\Plugins\Spine\Runtime\spine-unity\Asset Types\SkeletonDataAsset.cs:173
UnityEngine.Debug:LogError(Object, Object)
Spine.Unity.SkeletonDataAsset:GetSkeletonData(Boolean) (at Assets/Plugins/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs:176)
Spine.Unity.Editor.SkeletonDataAssetInspector:InitializeEditor() (at Assets/Plugins/Spine/Editor/spine-unity/Editor/Asset Types/SkeletonDataAssetInspector.cs:147)
Spine.Unity.Editor.SkeletonDataAssetInspector:OnEnable() (at Assets/Plugins/Spine/Editor/spine-unity/Editor/Asset Types/SkeletonDataAssetInspector.cs:84)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
  • Postovi: 19


Are you using the latest Spine Editor and spine-unity runtime versions? We fixed a very similarly looking issue approximately two months ago.

  • Postovi: 3921

Natrag na Bugs