I have a small issue with a Blackboard component from a behavior tree that when I try to set a value from the blackboard, the blackboard at that moment is a nullptr reference, I’m not sure what is causing this behavior to happen since I haven’t deleted at any moment the AI Actor nor anything related to it.
In this Screenshot you can see that the Blackboard component exists and is not a nullptr reference.
But I can’t set the values since for some reason the Blackboard is getting deleted or loosing it’s reference, any help with this issue would be greatly appreciated.
At no point does the AIController.Blackboard get cleared, once created. Which leads me to believe that you call your SetSubjectJobon something else than you expect. I’d double check that if I were you
But if that’s not the case you can always use VS’ data breakpoint to observe changes done to AIController.Blackboard. If you find the pointer being cleared follow up in this thread, please.
I have finally been able to solve this problem and it seems the issue was happening since in the constructor of my actor I had commented the following lines: