Hello everybody,
I got to use this nice asset after 1 year, and I found a weird error when installing the package with the unity asset manager.
It gets all the scripts, and always skips the Examples folder. In the past I remember I tried the examples a year ago and they installed fine.
I tried with the Unity version 2022.3.42f1 (LTS), and with the new beta version 6. They both give the same error and don’t import the Examples folder.
Error log:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PackageManager.UI.Sample.FindByPackage (UnityEditor.PackageManager.PackageInfo package, UnityEditor.PackageManager.UI.Internal.IUpmCache upmCache, UnityEditor.PackageManager.UI.Internal.IIOProxy ioProxy, UnityEditor.PackageManager.UI.Internal.IAssetDatabaseProxy assetDatabaseProxy) (at :0)
UnityEditor.PackageManager.UI.Sample.FindByPackage (System.String packageName, System.String packageVersion) (at :0)
Pathfinding.WelcomeScreen.GetSamples (UnityEditor.PackageManager.UI.Sample& sample) (at ./Packages/com.arongranberg.astar/Editor/UI/WelcomeScreen.cs:123)
Pathfinding.WelcomeScreen.CreateGUI () (at ./Packages/com.arongranberg.astar/Editor/UI/WelcomeScreen.cs:59)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at :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 :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object parameters) (at :0)
UnityEditor.UIElements.DefaultEditorWindowBackend.Invoke (System.String methodName) (at <3a0acf014d584f2192d1949cec86eb87>:0)
UnityEditor.EditorWindow:GetWindow(Boolean, String, Boolean)
Pathfinding.WelcomeScreen:Create() (at ./Packages/com.arongranberg.astar/Editor/UI/WelcomeScreen.cs:41)
Pathfinding.<>c__DisplayClass3_0:b__0() (at ./Packages/com.arongranberg.astar/Editor/UI/WelcomeScreen.cs:33)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()