Hello,
I'm trying to import a spine skeleton into Unity and I am running into some issues. I am using Unity 2021.3.6f1 on a empty 3D projet where I imported spine package spine-unity-4.1-2022-07-18.unitypackage. I rigged, animated and exported from Spine 4.1.06 (see export settings attached)
When importing into my project. I first run into these errors in the console : (see attached image error-import-01.PNG)
- Materials not set for atlas asset: skeleton_Atlas
- NullReferenceException: Object reference not set to an instance of an object
Spine.Unity.Editor.AssetUtility.GetMatchingAtlas (System.Collections.Generic.List1[T] requiredPaths, System.Collections.Generic.List
1[T] atlasAssets) (at Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:231)
Spine.Unity.Editor.AssetUtility.GetMatchingAtlas (System.Collections.Generic.List1[T] requiredPaths, System.String skeletonName, System.Collections.Generic.List
1[T] atlasAssets) (at Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:221)
Spine.Unity.Editor.AssetUtility.ImportSpineContent (System.String[] imported, System.Collections.Generic.List1[T] texturesWithoutMetaFile, System.Boolean reimport) (at Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:404)
Spine.Unity.Editor.AssetUtility.HandleOnPostprocessAllAssets (System.String[] imported, System.Collections.Generic.List
1[T] texturesWithoutMetaFile) (at Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:113)
Spine.Unity.Editor.SpineEditorUtilities.OnPostprocessAllAssets (System.String[] imported, System.String[] deleted, System.String[] moved, System.String[] movedFromAssetPaths) (at Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs:98)
- An infinite loop has been detected when processing post process all assets callbacks.
In the folder nothing shows up. (see attached image project-panel-error01.PNG)
I then tried to drag and drop the spine files again and this time no additional error appeared but the files appeared duplicated in the folder and despite the skeleton_Atlas beeing crated, the material and skeleton data were not created.
For further information I also attached the skeleton data asset I tried to create then manually and the issue with the skeleton_Atlas material
I tried importing from Spine 4.0 and also tried importing in Unity 2020.3.10 and could only make work a project with Spine 4.0 Unity 2020.3.10 and Spine 4.0.64 package edit when reopening the project UNity 2020.3 and Spine package 4.0.64 I ran in this known error Assets\Spine\Editor\spine-unity\Editor\Utility\SpineBuildProcessor.cs(164,20): error CS0117: 'AssetDatabase' does not contain a definition for 'SaveAssetIfDirty'
Am I missing something or the current package is broken spine-unity-4.1-2022-07-18?