Unity выдаёт ошибки "TargetParameterCountException"

При открытии моего новосозданного окна, Unity выдаёт ошибки. Вот полный текст первой ошибки:

TargetParameterCountException: Number of parameters specified does not match the expected number.
System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.Invoke (System.String methodName) (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.SendInitializeIfNecessary () (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.RegisterWindow () (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.UnityEditor.IEditorWindowBackend.OnRegisterWindow () (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.HostView.RegisterSelectedPane (System.Boolean sendEvents) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.HostView.SetActualViewInternal (UnityEditor.EditorWindow value, System.Boolean sendEvents) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.DockArea.SetSelectedPrivate (System.Int32 value, System.Boolean sendEvents) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.DockArea.AddTab (System.Int32 idx, UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.DockArea.AddTab (UnityEditor.EditorWindow pane, System.Boolean sendPaneEvents) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.Show () (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.GetWindowPrivate (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.GetWindow (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.GetWindow[T] (System.Boolean utility, System.String title, System.Boolean focus) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.GetWindow[T] (System.String title, System.Boolean focus) (at <756e9f00f78640ec93f83e08257daaec>:0)
UnityEditor.EditorWindow.GetWindow[T] (System.String title) (at <756e9f00f78640ec93f83e08257daaec>:0)
DG.Windows.DialogueGraphWindow.ShowExample () (at Assets/DialogueGraphFolder/Window/DialogueGraphWindow.cs:14)

Ведёт к этому коду:

GetWindow<DialogueGraphWindow>("DialogueGraph");

А вот вторая:

TargetParameterCountException: Number of parameters specified does not match the expected number.
System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.Invoke (System.String methodName) (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.SendInitializeIfNecessary () (at <c23044a1d79146ae9e09271e58031064>:0)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <756e9f00f78640ec93f83e08257daaec>:0)

Никуда не ведёт. Вопрос: Как их исправить? Окно не открывается, а только выдаёт вот эти ошибки.


Ответы (0 шт):