NodeCanvas Forums › Support › ArgumentNullException
I’m trying to create and bind a blackboard property. I have a view called GuardView which has this
public bool HeroVisible { get; private set; }
Once I add a bool blackboard property and bind it to this HeroVisible property and try to run the project, I get this:
ArgumentNullException: Argument cannot be null. Parameter name: method System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Delegate.cs:173) System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Delegate.cs:276) NodeCanvas.NCReflection.NCCreateDelegate (System.Reflection.MethodInfo method, System.Type type, System.Object instance) (at Assets/NodeCanvas/Core/Other/NCReflection.cs:252) NodeCanvas.NCReflection.NCCreateDelegate[Action1] (System.Reflection.MethodInfo method, System.Object instance) (at Assets/NodeCanvas/Core/Other/NCReflection.cs:245) NodeCanvas.Variables.VariableData1[System.Boolean].InitBinding (UnityEngine.GameObject go) (at Assets/NodeCanvas/Core/Blackboard/VariableData.cs:121) NodeCanvas.Blackboard.Awake () (at Assets/NodeCanvas/Core/Blackboard/Blackboard.cs:137)
1] (System.Reflection.MethodInfo method, System.Object instance) (at Assets/NodeCanvas/Core/Other/NCReflection.cs:245) NodeCanvas.Variables.VariableData
For now I’m using ScriptControl->CheckProperty instead of BlackBoard->CheckBoolean as a workaround.
Am I missing something?
Hello,
I wasn’t checking for whether or not the accessor is private. Here is the fix.
Please replace VariableData.cs InitBinding method at line #111 with the following:
Cheers!
Join us on Discord: https://discord.gg/97q2Rjh
Username
Password
Remember Me
By registering on this website you agree to our Privacy Policy.
Email
Username or Email