- Modifié
binary format file import into unity project fail in 3.2.01
When I try to import binary format animation data, I get this message:
ArgumentNullException: Argument cannot be null.
Parameter name: name cannot be null.
Spine.BoneData..ctor (System.String name, Spine.BoneData parent) (at Assets/Plugins/spine-csharp/src/BoneData.cs:55)
Spine.SkeletonBinary.ReadSkeletonData (System.IO.Stream input) (at Assets/Plugins/spine-csharp/src/SkeletonBinary.cs:125)
Spine.Unity.Editor.SpineEditorUtilities.AddRequiredAtlasRegionsFromBinary (System.String skeletonDataPath, System.Collections.Generic.List`1 requiredPaths) (at Assets/Plugins/spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs:621)
Importing binary format file into Unity3D project work perfect in old version, like 3.1.06. But it can't work after I update my spine version to 3.2.01. I change to use json, it is fine. Is it a bug? Or something change like configuration setting after 3.2.00?
Every time a new feature is introduced, the binary format likely gets changed.
http://esotericsoftware.com/support#What-version-of-Spine-works-with-what-version-of-the-Spine-Runtimes
Like any software dependency, updating the Spine Runtimes should be done with caution. For example, right before your application release is not a good time. Typically animators should use a specific Spine version so that the Spine version and Spine Runtimes version stays in sync.
This means whenever you update your Spine editor, you need to update your Spine runtimes.
And whenever you update your Spine runtimes, you need to export your files again.
Between minor updates it is likely okay, but big jumps like between 3.0 and 3.1, and 3.1 to 3.2, and 3.3 coming soon, include significant changes.
If you are using Unity, you can update your runtime to spine-csharp 3.2 beta with this unitypackage: http://esotericsoftware.com/files/runtimes/unity/spine-csharp-3_2_beta2.unitypackage
But with that update, if you are using binary, you will still need to re-export your skeletons.
[EDIT] The link and file has been updated. The previous beta had a problem.