nsf

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
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
nsf
  • Beiträge: 4

Nate

Thanks for the project export, it was helpful. We'll have a fix for this in the 3.8 runtimes very soon. Cheers! :beer:

---

Fix in reference implementation is here:
https://github.com/EsotericSoftware/spine-runtimes/commit/bb8cba13e1f1df95ff943e90f31997b739575f2d
We'll have it ported to all runtimes shortly.
Benutzeravatar
Nate

Nate
  • Beiträge: 9161

badlogic

This is now fixed in all runtimes.
Benutzeravatar
badlogic

Mario
  • Beiträge: 1924

nsf

Great news.
Thanks :cooldoge:
nsf
  • Beiträge: 4


Zurück zu Bugs