Using Behavior 1.0.7
I have a simple blackboard with only one shared variable in it of type List. I copied the GUID and I want to set the value from C#.
(BTW, the documentation page https://docs.unity3d.com/Packages/com.unity.behavior@1.0/manual/bind-c#.md is broken, because of the #, but one can find that page in the package…)
I have a public variable of the BehaviorGraphAgent, it is set. This code works:
[SerializeField] public BehaviorGraphAgent m_Agent;
public void sample()
{
SerializableGUID guid = new SerializableGUID(1, 0);
BlackboardVariable<GameObject> aBbv;
m_Agent.BlackboardReference.GetVariable(guid,out aBbv);
However, if I use the GUID of the variable in a shared blackboard, the code fails.
How are we supposed to access them?