Hi guys,
We've stumbled on a problem when migrating from Spine v3.7 to v3.8.
If our model has skins and mesh deformations we are unable to use the binary export format. We get the following exception when trying to import it in Unity 2019.1.12:
NullReferenceException: Object reference not set to an instance of an object
Spine.SkeletonBinary.ReadAnimation (System.String name, Spine.SkeletonBinary+SkeletonInput input, Spine.SkeletonData skeletonData) (at Assets/Spine/Runtime/spine-csharp/SkeletonBinary.cs:758)
Spine.SkeletonBinary.ReadSkeletonData (System.IO.Stream file) (at Assets/Spine/Runtime/spine-csharp/SkeletonBinary.cs:316)
Spine.Unity.Editor.AssetUtility.AddRequiredAtlasRegionsFromBinary (System.String skeletonDataPath, System.Collections.Generic.List`1[T] requiredPaths) (at Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:185)
Spine.Unity.Editor.AssetUtility.GetRequiredAtlasRegions (System.String skeletonDataPath) (at Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:110)
Spine.Unity.Editor.SkeletonDataAssetInspector.PopulateWarnings () (at Assets/Spine/Editor/spine-unity/Editor/Asset Types/SkeletonDataAssetInspector.cs:634)
Spine.Unity.Editor.SkeletonDataAssetInspector.InitializeEditor () (at Assets/Spine/Editor/spine-unity/Editor/Asset Types/SkeletonDataAssetInspector.cs:137)
Spine.Unity.Editor.SkeletonDataAssetInspector.OnInspectorGUI () (at Assets/Spine/Editor/spine-unity/Editor/Asset Types/SkeletonDataAssetInspector.cs:191)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:462)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
However, the json export format works as expected.
Here is our model (json file included)
Spider 01.zip
Cheers,
nsf