Choose and configure a Conditional

Conditionals answer one question with success or failure: can the agent see the target, is health low, has an event arrived, or is a value inside a range? A conditional completes during the update in which it is checked; it does not remain running.

Conditionals are also the tasks that Conditional Aborts reevaluate. This is what lets a patrol branch stop as soon as an enemy becomes visible, or a chase branch stop when sight is lost.

Small GameObject Conditionals can share a Stacked Conditional node. Use a standalone Conditional when it needs its own connection or should be immediately visible in the tree. See Stacked Conditional.

Conditional catalog

Browse the Conditional Catalog for every built-in Conditional on one page, including links to the illustrated workflows.