Sure 🙂
You can get the reference of a global blackboard with the static method GlobalBlackboard.Find(string name), where the parameter is the blackboard name. Here is an example:
1
2
3
4
5
6
7
8
9
10
publicclassExample:MonoBehaviour{
voidStart(){
varbb=GlobalBlackboard.Find("Global");
varmyPos=bb.GetValue<Vector3>("myPosition");
Debug.Log(myPos);
}
}
Let me know if this works for you.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.