I'm updating a project originally created in Unity 2021 to the latest LTS version of Unity 2022.
In this project, I'm using version 2.2.15 of Dialogue System. I'm encountering some console errors related to DS, such as:
Code: Select all
ArgumentException: You can only call GUI functions from inside OnGUI.
UnityEngine.GUIUtility.CheckOnGUI () (at <738dfc017b6f49678c748c0a004fcafe>:0)
UnityEngine.GUI.get_skin () (at <738dfc017b6f49678c748c0a004fcafe>:0)
PixelCrushers.HelpBoxAttributeDrawer.GetHeight () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Editor/Misc/HelpBoxAttributeDrawer.cs:18)
UnityEditor.UIElements.PropertyField.ResetDecoratorDrawers (UnityEditor.PropertyHandler handler) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.PropertyField.Reset (UnityEditor.SerializedProperty newProperty) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.PropertyField.Reset (UnityEditor.UIElements.SerializedPropertyBindEvent evt) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.PropertyField.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <886395f7f3c74189a56ab6a83f489872>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <886395f7f3c74189a56ab6a83f489872>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <886395f7f3c74189a56ab6a83f489872>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetAndDefaultPhase (UnityEngine.UIElements.EventBase evt) (at <886395f7f3c74189a56ab6a83f489872>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.SendBindingEvent[TEventType] (TEventType evt, UnityEngine.UIElements.VisualElement target) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindPropertyRelative (UnityEngine.UIElements.IBindable field, UnityEditor.SerializedProperty parentProperty) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.ContinueBinding (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.Bind (UnityEngine.UIElements.VisualElement element) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.Bind (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedObject obj) (at <b54ef8ca9c3e48ce9da615ccc27b9784>:0)
UnityEditor.UIElements.BindingExtensions.Bind (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedObject obj) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.SerializedObject obj, UnityEditor.Editor editor, UnityEditor.UIElements.InspectorElement+DefaultInspectorFramework defaultInspectorFramework) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.Editor editor, UnityEditor.UIElements.InspectorElement+DefaultInspectorFramework defaultInspectorFramework) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.Editor editor) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.EditorElement.BuildInspectorElement () (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.UIElements.EditorElement.CreateInspectorElement () (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.EditorElementUpdater.CreateInspectorElementsForMilliseconds (System.Int64 targetMilliseconds) (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.PropertyEditor.Update () (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.HostView.SendUpdate () (at <4b8f645257c94d1296f440a10c6f388e>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <4b8f645257c94d1296f440a10c6f388e>:0)
I'm using some customized prefabs for DS dialogues (mainly UI), so deleting the entire Pixel Crushers folder and reinstalling everything from scratch would be problematic.