On Variable Change

Triggered when a State Machine asset variable changes

Executed when the State Machine Variable is modified.

Description

This event fires whenever a variable on a State Machine asset is changed. Use this to react to global state changes across all instances.

Parameters

Name
Description

Variable

The variable to monitor for changes

Keywords

Variable, Change, State Machine

Example

Trigger Component:
โ”œโ”€ Event: On State Machine Variable Change
โ”‚   โ””โ”€ Variable: "GameMode"
โ””โ”€ Actions:
    โ””โ”€ Update UI to reflect new game mode

Use this event for global variables that affect the entire game, such as game mode, difficulty settings, or global unlocks.

Last updated

Was this helpful?