Variable
Stores one value and provides a Var Ref for Set, Get, and Increment Variable gates. Use it for persistent state such as a score, speed, or toggle.
Brick summary: Allows defining a variable, which can be modified and read via other Variable gates.
Diagram
Ports drawn from the source data: inputs left, outputs right, config inside.
How it's used
Structural overview — derived from this gate's ports, not
from tested behavior. Takes no wire inputs. Produces 2 outputs: Value (any), Var Ref (varRef).
Wire inputs
Wires you feed into the gate.
No wire inputs.
Wire outputs
Wires the gate produces.
| Display name | Type | Tooltip |
|---|---|---|
| Value | any | No tooltip in source |
| Var Ref (VarRef) | varRef | No tooltip in source |
Source details
- Brick asset
- B_1x1_Gate_Variable
- Component class
- BrickComponentType_Var
- Kind
- pseudo
- Family
- Var
- Half size
- 5 × 5 × 2