Reply To: Overridden OnValidate() causes MissingException Error

Forums 💬 NodeCanvas ⚙️ Support Overridden OnValidate() causes MissingException Error Reply To: Overridden OnValidate() causes MissingException Error

#17456
anonymous
Participant

    Hello and thank you for your reply!

    First of all thanks for the spacebar bug solution.
    About Coroutines: I honestly didn’t realize they only work in play mode. I removed them and made a simple fix. I used them in first place because when OnValidate was called, node ID was 0, which caused problem with my implemented ID generation.

    I still have one bug, that occurs when opening search window for nodes:
    InvalidCastException: Cannot cast from source type to destination type.
    UnityEditor.EditorGUILayout.BeginScrollView (Vector2 scrollPosition, Boolean alwaysShowHorizontal, Boolean alwaysShowVertical, UnityEngine.GUIStyle horizontalScrollbar, UnityEngine.GUIStyle verticalScrollbar, UnityEngine.GUIStyle background, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7957)

    Origin is class GenericMenuBrowser.cs line 345. This error occurs even if no nodes are in graph.