Leaf Node

The Leaf nodes are the execution endpoint in a behavior tree, responsible for either performing actions or evaluating conditions. Then return their execution results to the parent node, helping to determine the next step in the behavior tree's operation.

  • Action Nodes: Performs specific actions such as playing animations, outputting parameters, switching states, etc.
  • Condition Nodes: Evaluates whether the current context meets specific conditions, such as checking the character's current state or determining if a countdown has ended.

Right-click on the empty area of the Behavior Tree Graph, and select Leaf to show the node options.

  • Upward Linking: All Leaf nodes require a Composite or Decorator node to determine the execution flow or logic.
  • Downward Linking: Leaf nodes cannot have child nodes.