Behavior Designer visualizes the active execution path in Play Mode so you can
find the first task whose result differs from what you expected.

Read the running tree

Open Tools > Behavior Designer > Editor, select the GameObject that owns the
tree, and enter Play Mode.

In paused Play Mode, Entry, Sequence and Wait are active; Sequence has a comment and watched Abort Type, and Log Complete has a breakpoint.

  • Green marks the task or path currently executing.
  • A check mark records Success.
  • An X records Failure.
  • Gray tasks are not currently executing.

The Sequence’s comment explains that it runs one task at a time, and the watched
Abort Type appears beside it. Log Begin has succeeded while Wait runs.
The red breakpoint marker on the inactive Log Complete shows where Unity
will pause when execution reaches that task. This capture was paused after the
running state settled, before that breakpoint was reached.

Entry, Sequence and Wait are green; Log Begin has succeeded and Log Complete has not started.

This smaller Sequence has completed Log Begin, is executing Wait, and has not reached Log Complete. The green Entry/Sequence/Wait path and the first Log’s check mark show the difference between active execution and an earlier successful result.

Select a task to inspect its live field values. Runtime edits take effect for
the current Play Mode session but are not a substitute for editing the saved
tree outside Play Mode.

Inspect execution and values

Right-click a task and choose Set Breakpoint. Unity pauses when that task is
activated, before the tree advances past the point you want to inspect. Choose
Remove Breakpoint from the same menu when finished.

Enable Select GameObject if breakpoint hit in Behavior Designer preferences
when a breakpoint should also select the tree owner.

Select a task and use the watch icon beside a supported field. The field value
appears on the task in the graph, which is useful when a Conditional result
depends on a target, distance, or counter. Remove the watch when the graph no
longer needs the extra label.

Right-click a task and choose Disable, or use the disable control on the
task. A disabled task is drawn darker and skipped without executing its normal
logic. Its parent handles the inactive child according to that parent’s
traversal rule. Re-enable it before judging the complete tree.

Enable Log Task Changes on the Behavior Tree component
to write push and pop transitions to the Console. Each message identifies the
GameObject, behavior, task, task index, execution stack, and final status. This
is especially useful when a Parallel task creates more than one execution
stack.

Troubleshooting

  • No tree is highlighted: confirm the selected GameObject owns the running
    Behavior Tree component and that the component is enabled.
  • A breakpoint is never reached: follow the status icons from the root; an
    earlier Conditional may be selecting another branch.
  • A value appears correct but the task fails: watch every input used by that
    task and check whether it is local, global, dynamic, or property-mapped.
  • The graph moves too quickly to read: set a breakpoint immediately before
    the suspect task or temporarily simplify the branch.