UI Gates

2 gates available for UI workflows.

◷ 3 min read Phase 5 enhanced
Guidance panels
Source of truth This page lists only bricks registered by the uploaded addon. Legacy aliases and compatibility script shims are not presented as separate menu entries.
Chapter guide

How gates fit into a chain

Gates decide whether connected trigger results are allowed to continue. They keep conditions separate from the actions that follow.

  1. Connect one or more Triggers.
  2. Choose the logic mode or script module.
  3. Connect the Gate output to the Actions that should run.
gate • ui

Gate

3D 2D UI

AND: all connected triggers must be active OR: any connected trigger must be active NAND: NOT all triggers active (fires unless all are true) NOR: NO triggers active (fires only when all are false) XOR: exactly one trigger is active

Menu Add Logic Brick → Gates

Options

Property Details
logic_mode Logic Mode
Choices: AND,OR,NAND,NOR,XOR
Default: and
all_states All States
Default: false
state_id State Id
Choices: __STATE_LIST__
Using this brick

Typical uses

  • Combine one or more trigger results before actions run.
  • Keep decision-making separate from the actions that follow.
  • Switch between AND, OR, NAND, NOR, and XOR without adding separate gate bricks.

Example chain

One or more triggers Gate Choose an action
Tip Use AND when every connected condition must be true, and OR when any connected condition may continue the chain.
Common mistake Do not create separate bricks for AND, OR, NAND, NOR, or XOR; choose the mode inside the Gate brick.
gate • ui

Script Gate

3D 2D UI

Runs a custom GDScript module function: - Point to a .gd file - That file defines a top-level function: func run(node: Node) -> void: - When the trigger fires, run(node) is called — node is the scene object Example script (my_script.gd): func run(node: Node) -> void: node.health -= 10 print("Health: ", node.health) The script does NOT need extends — it is called as a module, not instantiated.

Menu Add Logic Brick → Gates

Options

Property Details
logic_mode Logic Mode
Choices: AND,OR,NAND,NOR,XOR
Default: and
script_path Script Path
Choices: *.gd
all_states All States
Default: false
state_id State Id
Choices: __STATE_LIST__
Using this brick

Typical uses

  • Combine one or more trigger results before actions run.
  • Keep decision-making separate from the actions that follow.
  • Call a small reusable GDScript module when visual logic needs custom behavior.

Example chain

One or more triggers Script Gate Choose an action
Tip Keep the module function small and focused, and test its file path before connecting it to a larger chain.
Common mistake The module script must expose the function format described above; it is not used like a normal node script.