• Unity
  • error reading JSON

  • 編集済み
Related Discussions
...

Hy Nate,

How are you? I am newly in spine unity so I haven't any information about spine, I just see tutorial and star working. I am getting these error while giving Json file to "Skeleton AssetData".

  1. Skeleton 'coffee-filling-upgrade-1.json' has no version information. It may be incompatible with your runtime version: spine-unity v3.7
    UnityEngine.Debug:LogWarningFormat(String, Object[])

2.Error reading skeleton JSON file for SkeletonData asset: New SkeletonDataAsset
The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x000a2] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150
at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x00080] in /Users/mac/New Unity Project/Assets/Spine/Runtime/spine-csharp/SkeletonJson.cs:102
at Spine.Unity.SkeletonDataAsset.ReadSkeletonData (System.String text, AttachmentLoader attachmentLoader, Single scale) [0x0001a] in /Users/mac/New Unity Project/Assets/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs:234
at Spine.Unity.SkeletonDataAsset.GetSkeletonData (Boolean quiet) [0x000c8] in /Users/mac/New Unity Project/Assets/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs:171
UnityEngine.Debug:LogError(Object, Object)
Spine.Unity.SkeletonDataAsset:GetSkeletonData(Boolean) (at Assets/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs:175)
Spine.Unity.Editor.SkeletonDataAssetInspector:InitializeEditor() (at Assets/Spine/Editor/spine-unity/Editor/SkeletonDataAssetInspector.cs:138)
Spine.Unity.Editor.SkeletonDataAssetInspector😮nInspectorGUI() (at Assets/Spine/Editor/spine-unity/Editor/SkeletonDataAssetInspector.cs:186)
UnityEngine.GUIUtility😛rocessEvent(Int32, IntPtr)

Please help me, it tooks many hours for searching about this errors, but found not a solution 🙁 .

Please Help me.

Thanks,

Hello! Your issue had nothing to do with the topic you posted in, so I have split your post to a new topic. Topics keep discussions sane


if we all made a bunch of unrelated posts in a single topic then the forum would be a mess.

It looks like you need to use the runtime version that matches the version of the Spine editor that exported your JSON data. Eg, get the latest runtime and export your JSON with the latest version of the Spine editor.