
想把_get_anchors_layout_preset这个函数相关的删掉
别引用的都删改完了,并且保证能正常运行,现在就剩下图中圈起来那行的引用,但是删了编辑器启动的时候就报错
这是错误信息
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Godot.NativeInterop.NativeFuncs.godotsharp_internal_script_debugger_send_error(Godot.NativeInterop.godot_string ByRef, Godot.NativeInterop.godot_string ByRef, Int32, Godot.NativeInterop.godot_string ByRef, Godot.NativeInterop.godot_string ByRef, Godot.NativeInterop.godot_bool, godot_stack_info_vector ByRef)
at Godot.NativeInterop.ExceptionUtils.SendToScriptDebugger(System.Exception)
at Godot.NativeInterop.ExceptionUtils.LogException(System.Exception)
at Godot.Bridge.CSharpInstanceBridge.Call(IntPtr, Godot.NativeInterop.godot_string_name*, Godot.NativeInterop.godot_variant**, Int32, Godot.NativeInterop.godot_variant_call_error*, Godot.NativeInterop.godot_variant*)
at Godot.NativeInterop.NativeFuncs.godotsharp_method_bind_ptrcall(IntPtr, IntPtr, Void**, Void*)
at Godot.EditorNativeCalls.godot_icall_2_388(IntPtr, IntPtr, IntPtr, System.String)
at Godot.EditorPlugin.AddControlToBottomPanel(Godot.Control, System.String)
at GodotTools.GodotSharpEditor._EnablePlugin()
at Godot.EditorPlugin.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name ByRef, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant ByRef)
at GodotTools.GodotSharpEditor.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name ByRef, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant ByRef)
at Godot.Bridge.CSharpInstanceBridge.Call(IntPtr, Godot.NativeInterop.godot_string_name*, Godot.NativeInterop.godot_variant**, Int32, Godot.NativeInterop.godot_variant_call_error*, Godot.NativeInterop.godot_variant*)
求助,这是什么原因?移除或添加类似的ClassDB::bind_method语句时需要注意什么?