On Runner Variable Change
Triggered when a State Machine Runner variable changes
Last updated
Triggered when a State Machine Runner variable changes
Executed when the State Machine Runner Variable is modified.
This event fires whenever a variable on a specific State Machine Runner is changed. Use this to react to per-instance state changes.
Variable
The variable to monitor for changes
Runner
The target GameObject containing the State Machine Runner
Variable, Change, State Machine, Runner
Trigger Component:
โโ Event: On State Machine Runner Variable Change
โ โโ Variable: "Health"
โ โโ Runner: Self
โโ Actions:
โโ Update health bar UI
โโ Play damage effect if health decreasedThis is the most common event for reactive gameplay systems. Use it to:
Update UI when stats change
Trigger effects when state changes
Sync visuals with game logic
The Runner parameter is typically set to Self to monitor the runner on the same GameObject as the Trigger.
Last updated