- संपादित
Problem statement
My coworker was invited to try 4.3-Beta, and so we decided to make the switch, as our game still has at least a few months of development left before launch.
It was working fine, but after the most recent update (4.3.12-beta) we find that our exported JSON files no longer load into our Unity project (despite updating the runtimes to the 4.3 beta branch from GitHub).
The error is as follows:
Error reading skeleton JSON file for SkeletonData asset: character_SkeletonData
The given key 'target' was not present in the dictionary.
at System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) [0x0001e] in <27bd554a9f0e46179afd19da1336e638>:0
at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x007d3] in /Users/tklein/perforce_workspace/Knockout2/game/Knockout2/Assets/Spine/Runtime/spine-csharp/SkeletonJson.cs:223
at Spine.Unity.SkeletonDataAsset.ReadSkeletonData (System.String text, Spine.AttachmentLoader attachmentLoader, System.Single scale) [0x00014] in /Users/tklein/perforce_workspace/Knockout2/game/Knockout2/Assets/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs:295
at Spine.Unity.SkeletonDataAsset.GetSkeletonData (System.Boolean quiet) [0x000a7] in /Users/tklein/perforce_workspace/Knockout2/game/Knockout2/Assets/Spine/Runtime/spine-unity/Asset Types/SkeletonDataAsset.cs:194
[stack trace omitted for size]
I'm not 100% sure, but it's possible it's related to the export containing a bad version string, e.g. 4.1-from-4.3.12-beta when exported with 4.2 compatibility.
Describe: 1) what you have tried, 2) what you expected, and 3) what actually happened.
We've tried exporting with 4.3, 4.2, and 4.1 compatibility as a JSON file and all exports have the same problem not finding the "target" key. We expect that, using the 4.3 beta runtimes, that we would be able to import and load the 4.3 exported JSON file, but instead get the error above.Give step-by-step instructions so we can reproduce the problem, if possible.
- Load 4.3 runtimes into Unity 6 project.
- Make a Spine file with an old Spine version.
- Update Spine to latest 4.3 version.
- Make changes to Spine file with new Spine version.
- (Make changes using new 4.3 Spine features??).
- Export Spine file as JSON with 4.3 compatibility.
- Attempt to import this Spine file into Unity 6.
Editor information
Tell us your Spine Editor version.
Spine v4.3.12-Beta
Tell us your Spine Runtime version.
Runtime 4.3-beta Branch Revision #66434fe