foriero

ArgumentNullException: Value cannot be null.
Parameter name: shader
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Shaders/Material.bindings.cs:18)
Spine.Unity.Editor.AssetUtility.IngestSpineAtlas (UnityEngine.TextAsset atlasText, System.Collections.Generic.List`1[T] texturesWithoutMetaFile) (at Assets/Git/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:581)
Spine.Unity.Editor.AssetUtility.ImportSpineContent (System.String[] imported, System.Collections.Generic.List`1[T] texturesWithoutMetaFile, System.Boolean reimport) (at Assets/Git/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs:329)
Spine.Unity.Editor.AssetUtility.HandleOnPostprocessAllAssets (System.String[] imported, System.Collections.Generic.List`1[T] texturesWithoutMetaFile) (at Assets/Git/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/Git/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs:98)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e38a6d3ee47c43eb9b2e49c63fc0aa48>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e38a6d3ee47c43eb9b2e49c63fc0aa48>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <e38a6d3ee47c43eb9b2e49c63fc0aa48>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at /Users/bokken/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:1145)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets, System.Boolean didDomainReload) (at /Users/bokken/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:385)
Founder & CEO Foriero s.r.o.
https://studio.foriero.com
Avatar
foriero
  • Postovi: 471

Harald

Thanks for reporting and sorry for the troubles.

Are you on 4.0 (I assume on the latest git status of 4.0 then)? From your previous postings I expected you to be on 4.1-beta, but the last two lines (AssetUtility.cs:581, AssetUtility.cs:329) are blank/non-executable.
Avatar
Harald

Harri
  • Postovi: 4002

foriero

Yes we stick to 4.0 this time. Yes latest from git.
Founder & CEO Foriero s.r.o.
https://studio.foriero.com
Avatar
foriero
  • Postovi: 471

Harald

Null checks have been added and new 4.0 and 4.1-beta unitypackages released.

In general it is recommended to not set the Default Shader in the Spine Preferences to something invalid or null.
Avatar
Harald

Harri
  • Postovi: 4002

foriero

Harald, we have set Default Shader but for some reason our material gets deleted and Atlas material reference is wiped out. The null exception is gone but when reimporting the spine folder, material gets deleted and Atlas material references are gone.
Founder & CEO Foriero s.r.o.
https://studio.foriero.com
Avatar
foriero
  • Postovi: 471

Harald

Could you then as usual please send us a minimal Unity reproduction package to contact@esotericsoftware.com? Then I can have a look at it.
Avatar
Harald

Harri
  • Postovi: 4002


Natrag na Bugs