Gates › Variables › Variable

Variable

Pseudo Variables 0 in 2 out ⬚ 1x1

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).

No curated example for this gate yet. The shape above is accurate (from the inventory); what it does in practice should be confirmed in-game.

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

From logic_gate_inventory.simple.json @ 9660107, supplemented by gate_docs.json. Documented behavior, not independently tested.