Hello, as in topic, I see that we can have GameObject list in blackboard but can no ScriptableObject list, tried some containers and workarounds but inspector doesn’t serialize contents of SO so then i can’t fill them per graph.
Second question, how to access graph blackboard from inside Action/Condition Node? I saw that inside Node class is Graph variable that has blackboard reference, but it has no getter ![]()
Hello @Miestry,
Your request for ScriptableObject list is reasonable, so I’ll add it to the next release.
However, ScriptableObjects being UnityEngine.Object, the field will always be reference type. Behavior doesn’t support plain old data container (C# derived object). Only basic types and UnityEngine.Objects types.
I am not sure to understand, do you want to be able to get variable from the blackboard directly instead of using a BlackboardVariable<T> on your node?
If so you could cache a reference to the running agent (BehaviorGraphAgent) from Node.GameObject. This will then give you access to the BehaviorGraphAgent API to work with blackboard. You should always work using the BehaviorGraphAgent API as it is able to fetch variable from all linked blackboard reference.