I have a variable (currentWaypoint) that gets set in a custom Evade action. The action is defined in a Tree that is attached to my Player object. Is there a proper way of accessing the currentWaypoint value from my Player object (I.E by bubbling it up through blackboards)? I want to draw a Gizmo when the Player object is selected for debugging purposes.
Hello there,
If you mean accessing blackboard variables from code, then yes that is very possible using the blackboard methods. For example GetComponent<Blackboard>().GetVariableValue<Vector3>("currentWaypoint");
Please let me know if that is what you mean indeed.
Thanks!