Variables, States & Frames

Store values, control active logic, and organize large graphs.

◷ 1 min read Phase 5 enhanced

Variables and globals

Use local variables for data tied to the selected node and globals for data shared across systems. Variable types include Boolean, Integer, Float, String, Vector2, Vector3, and Array values. Vector2 and Vector3 are edited with separate axis fields.

An Array stores an ordered list of items in one variable. Array items may use different supported types, so one Array can contain numbers, strings, booleans, Vector2 values, and Vector3 values. Use the Array editor to add or remove items and choose the type and value for each item.

Array indexes start at 0 The first item is index 0, the second item is index 1, and so on. Compare Variable and Modify Variable automatically detect when the named variable is an Array and change their available operations to Array-specific options.

States

States group logic so only the intended state runs. The Controller brick includes state selection and an All States option.

Frames

Frames visually organize groups of bricks. The current editor supports frame names, comments, colors, dimensions, navigation from the frame list, and deletion.

Organization tip Use frames for readability and states for runtime behavior. They solve different problems.