Forums › 💬 NodeCanvas › ⚙️ Support › [BUG] "ArgumentException: method argument length mismatch" on Node inspector
When I click the marked icon in the Node inspector it disappears and throws an error and I have to restart Unity to get it back. Re-opening the canvas window is not enough
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
ArgumentException: method argument length mismatch System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) (at :0) System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at :0) UnityEditor.HostView.CreateDelegate (System.String methodName) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.HostView.CreateDelegates () (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.HostView.SetActualViewInternal (UnityEditor.EditorWindow value, System.Boolean sendEvents) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.DockArea.SetSelectedPrivate (System.Int32 value, System.Boolean sendEvents) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.DockArea.AddTab (System.Int32 idx, UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.DockArea.AddTab (UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.Show () (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.GetWindowPrivate (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.GetWindow (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.GetWindow[T] (System.Boolean utility, System.String title, System.Boolean focus) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.EditorWindow.GetWindow[T] () (at <701f6580abad44cfb237a543dcd0d94b>:0) NodeCanvas.Editor.ExternalInspectorWindow.ShowWindow () (at Assets/Plugins/ParadoxNotion/CanvasCore/Framework/Design/Editor/Windows/ExternalInspectorWindow.cs:18) NodeCanvas.Editor.GraphEditor.ShowInspectorGUIPanel (NodeCanvas.Framework.Graph graph, UnityEngine.Vector2 canvasMousePos) (at Assets/Plugins/ParadoxNotion/CanvasCore/Framework/Design/Editor/Windows/GraphEditor.Panels.cs:129) NodeCanvas.Editor.GraphEditor.ShowPanels (NodeCanvas.Framework.Graph graph, UnityEngine.Vector2 canvasMousePos) (at Assets/Plugins/ParadoxNotion/CanvasCore/Framework/Design/Editor/Windows/GraphEditor.Panels.cs:56) NodeCanvas.Editor.GraphEditor.OnGUI () (at Assets/Plugins/ParadoxNotion/CanvasCore/Framework/Design/Editor/Windows/GraphEditor.cs:523) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEditor.DockArea.OldOnGUI () (at <701f6580abad44cfb237a543dcd0d94b>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcher.OpenGate () (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <9c9fa79efe9e479a8cbe7a6f99f673d3>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0) |
Hello again,
What version of Unity are you using please?
There was a recent finding in regards to External Inspector (which is what that button opens) that has been fixed and which may also be the reason behind this error (which as far as I can tell you are using a Unity version of 2020+ ?).
Please try importing the attached package (fix) and let me know if that solves the problem for you.
Thank you.
Worked for me,but after importing this package need to reset layout to default (2020.1.8f1).
Hello,
In the new version just released (3.1.6), this error has been fixed 🙂
Thanks!