Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Creating A Behavior Tree

Ryan Heath edited this page Apr 4, 2022 · 2 revisions

Right click in asset window -> Create -> BehaviorTree will create the Behavior Tree asset file.

Double click the created asset to open the editor.

In the editor you can add the different types of nodes:

  • Leaves (Red)
  • Control (Green)
  • Decorator (Blue) Once created they can be wired together using the handles on their inputs and outputs.

The RootNode defines the starting point for the tree, wire it to where you want your tree to begin executing.

Once your Behavior Tree is ready, add a Agent component to a game object and set its Tree reference to the Behavior Tree you want it to execute.

Clone this wiki locally