You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And try to build you will receive a similar error message:
modules/mono/glue/runtime_interop.cpp:1324 - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentNullException: Value cannot be null. (Parameter 'array')
at Godot.Collections.Array..ctor(Span`1 array) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs:line 90
at Godot.NativeInterop.VariantUtils.CreateFromSystemArrayOfNodePath(Span`1 from) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs:line 238
at Project.Test.GetGodotPropertyDefaultValues() in ProjectPath\Godot.SourceGenerators\Godot.SourceGenerators.ScriptPropertyDefValGenerator\Project.Test_ScriptPropertyDefVal.generated.cs:line 11
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Godot.Bridge.ScriptManagerBridge.GetPropertyDefaultValuesForType(Type type, IntPtr scriptPtr, IntPtr addDefValFunc) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs:line 992
Minimal reproduction project
easily reproducible
The text was updated successfully, but these errors were encountered:
Godot version
4.1.1 & 4.2-dev5
System information
win10
Issue description
The docs says it is possible to export NodePath in a native c# array, but in reality is not.
https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_exports.html#exporting-c-arrays
Steps to reproduce
And try to build you will receive a similar error message:
Minimal reproduction project
easily reproducible
The text was updated successfully, but these errors were encountered: