Runner Node Is Enabled

Check if a node is enabled on a specific runner

Returns true if the node is enabled on the specified State Machine Runner.

Description

Checks whether a specific node is enabled (not disabled) on a State Machine Runner instance. Enabled nodes can be executed; disabled nodes cannot.

Parameters

Name
Description

Target

The target GameObject that contains the State Machine Runner

Node

The node to check

Returns

Value
Condition

True

The specified node is enabled and can be executed

False

The node is disabled or the runner doesn't exist

Keywords

State Machine, Is Enabled, Run

Example

Branch Node:
โ”œโ”€ Condition: State Machine Runner Node Is Enabled
โ”‚   โ”œโ”€ Target: Self
โ”‚   โ””โ”€ Node: "SpecialAbilityNode"
โ”œโ”€ True โ†’ Show ability button
โ””โ”€ False โ†’ Hide ability button (ability locked)

Use this condition to check if features are unlocked or available before showing UI elements or allowing actions.

Last updated

Was this helpful?