I just bought an add-on for NC2 in the Asset Store call “A Pathfinding Actions for NodeCanvas”, there is a behavior tree saved as asset call “SpawnBehaviour”, the exception will be threw just when i load it to NC2 editor, the graph is show as attached.
I got the same error. But with a different repro step.
I’m using Dialogue Canvas.
I added a global variable in the blackboard which is a custom class. The variable is null and is set just before starting the dialogue (with blackboard.SetValue)
Like Leon, the exception appears when loading and clicking the NC2 editor.
My guess is that this returns null. typeof(Task).GetField("taskAgent", BindingFlags.Instance | BindingFlags.NonPublic)
But when I tried storing it in a var, it is always null.