Atlas source cannot be null!
Unity CLI 빌드로 진행하는 과정에서 발생한 에러이다.
간략하게 보면 Spine 데이터를 읽을때 버전이 달라지면서 Atlas 데이터를 못찾으면서 발생하는 에러이다.
간단하게 해결방법은 다음과 같다.
반응형
[2023-10-05T11:14:42.211Z] (Filename: ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/AssetUtility.cs Line: 598)
[2023-10-05T11:14:42.211Z]
[2023-10-05T11:14:42.211Z] Atlas source cannot be null!
[2023-10-05T11:14:42.211Z] UnityEngine.StackTraceUtility:ExtractStackTrace ()
[2023-10-05T11:14:42.211Z] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
[2023-10-05T11:14:42.211Z] UnityEngine.Logger:Log (UnityEngine.LogType,object)
[2023-10-05T11:14:42.211Z] UnityEngine.Debug:LogWarning (object)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.AssetUtility:IngestSpineAtlas (UnityEngine.TextAsset,System.Collections.Generic.List`1<string>) (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/AssetUtility.cs:598)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.AssetUtility:ImportSpineContent (string[],System.Collections.Generic.List`1<string>,bool) (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/AssetUtility.cs:387)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.AssetUtility:HandleOnPostprocessAllAssets (string[],System.Collections.Generic.List`1<string>) (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/AssetUtility.cs:113)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.SpineEditorUtilities:OnPostprocessAllAssets (string[],string[],string[],string[]) (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs:98)
[2023-10-05T11:14:42.211Z] System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
[2023-10-05T11:14:42.211Z] System.Reflection.MethodBase:Invoke (object,object[])
[2023-10-05T11:14:42.211Z] UnityEditor.AssetPostprocessingInternal:InvokeMethod (System.Reflection.MethodInfo,object[])
[2023-10-05T11:14:42.211Z] UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.SpineBuildProcessor:PreprocessSpriteAtlases () (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs:152)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.SpineBuildProcessor:PreprocessBuild () (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs:73)
[2023-10-05T11:14:42.211Z] Spine.Unity.Editor.SpineBuildPreprocessor:UnityEditor.Build.IPreprocessBuildWithReport.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at ./Library/PackageCache/com.esotericsoftware.spine.spine-unity@661796d2cb/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs:199)
[2023-10-05T11:14:42.211Z] UnityEditor.Build.BuildPipelineInterfaces/<>c__DisplayClass16_0:<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport)
[2023-10-05T11:14:42.211Z] UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair<UnityEditor.Build.IPreprocessBuild, UnityEditor.Build.IPreprocessBuildWithReport> (System.Collections.Generic.List`1<UnityEditor.Build.IPreprocessBuild>,System.Action`1<UnityEditor.Build.IPreprocessBuild>,System.Collections.Generic.List`1<UnityEditor.Build.IPreprocessBuildWithReport>,System.Action`1<UnityEditor.Build.IPreprocessBuildWithReport>,bool)
[2023-10-05T11:14:42.211Z] UnityEditor.Build.BuildPipelineInterfaces:OnBuildPreProcess (UnityEditor.Build.Reporting.BuildReport)
[2023-10-05T11:14:42.211Z] UnityEditor.BuildPipeline:BuildPlayerInternal (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[])
[2023-10-05T11:14:42.211Z] UnityEditor.BuildPipeline:BuildPlayer (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[])
[2023-10-05T11:14:42.211Z] UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)
[2023-10-05T11:14:42.211Z] UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions)
Unity 프로젝트를 CLI 빌드를 하기전에 Editor를 실행해서 열어주면
Spine 버전이 변경에 관련된 메시지가 나온다. 그리고 다시 .Meta 파일을 Unity 에서 생성하고 난 이후에는 정상적으로 된다. (Spine Asset 파일이 정상적인지 확인이 필요하다.)
★☆☆☆☆
반응형
'개발 > Unity' 카테고리의 다른 글
Unity) LineRenderer (Sprite Repeat) (0) | 2023.10.26 |
---|---|
문제해결)Unity Package Manager Error (0) | 2023.10.25 |
Unity)DLL (Dynamic Link Library)-> UPM(UnityPackageManager) 배포 (0) | 2023.10.17 |
Unity)Sprite Library Editor (스프라이트 라이브러리 에디터) (2) | 2023.10.16 |
Unity) ClipBoard (클립보드 : 복사 붙여 넣기 Copy & Paste) (0) | 2023.10.15 |
댓글