Create a Agent
Last updated
Last updated
After we've created behaviors we need to assign them to agents. This can be done through code or by simply adding a BadgerComponent to a GameObject.
Select the agent's behavior by assigning a tree in the "Asset" field. The field "Async Search" allows a multi-threaded search. The default behavior is that "Auto Tick" is enabled which updates the search and plan execution every frame.
The agent's blackboard can be viewed in the tree view and clicking "Show Agent".
BadgerComponent inherits from AgentComponent<T> and creates a new Agent<T> in the Awake() function.
The "Open Tree" view brings up the tree view for the assigned asset and the "Open Plan" brings up the currently executing plan.