Cannot add variables to blackboard

Forums 💬 NodeCanvas ⚙️ Support Cannot add variables to blackboard

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15444
    crear2013
    Participant

      Hello,

      I keep getting an error when trying to add variables to the blackboard; this happens when using a bound graph or an asset graph.

      Here is the error message:

      NullReferenceException: Object reference not set to an instance of an object

      NodeCanvas.Editor.BlackboardEditor+<>c.<GetAddVariableMenu>b__24_5 (UnityEngine.Component c) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editors/BlackboardEditor.cs:289)

      System.Linq.Enumerable+WhereArrayIterator`1[TSource].MoveNext () (at <6d8d8bfa07a94600b91503349e4a8e4f>:0)

      NodeCanvas.Editor.BlackboardEditor.GetAddVariableMenu (NodeCanvas.Framework.IBlackboard bb, UnityEngine.Object contextParent) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editors/BlackboardEditor.cs:289)

      NodeCanvas.Editor.BlackboardEditor.InspectorGUI (NodeCanvas.Framework.IBlackboard bb, UnityEngine.Object overrideContextObject) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editors/BlackboardEditor.cs:81)

      NodeCanvas.Editor.BlackboardEditor.ShowVariables (NodeCanvas.Framework.IBlackboard bb, UnityEngine.Object overrideContextObject) (at Assets/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editors/BlackboardEditor.cs:58)

      NodeCanvas.Editor.BlackboardInspector.OnInspectorGUI () (at Assets/ParadoxNotion/CanvasCore/Framework/Design/Editor/Inspectors/BlackboardInspector.cs:31)

      UnityEditor.UIElements.InspectorElement+<>c__DisplayClass62_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <eae4e950171640a6a436587c4978a87e>:0)

      UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

       

      I have updated to the latest version as well.

       

      Thanks in advance

      #15445
      Gavalakis
      Keymaster

        Hello there,

        Hmm. It seems like you may have some “missing” components attached to the gameobject. Can you please confirm that this is indeed the case?

        If that is the case and you want to keep those “missing” components attached (I don’t suggest so), I can post a small code change for you to avoid the null reference (which is caused but those missing compoents).

        Thank you.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.