Signals & Connections
Master Godot signal system for decoupled communication between nodes.
Scripting
No shortcutIntermediate6 min readQuick Reference
Signals & Connections
Godot EngineKeyboard Shortcut
N/A
Where to Find
Select any node → Click Attach Script button, or Script Editor panel
Best Used For
- ▸Write game logic with variables and functions
- ▸Connect nodes via signals for decoupled systems
- ▸Expose Inspector properties for designer tweaking
Intermediate⏱ 30–60 minutes to master
Key Settings
Connect:Custom signals:Emit:One-shot:
Signals are Godot's event system for decoupling node communication. Nodes emit signals when events occur, and other nodes can connect to those signals to respond.
Where to Find It
Signals are visible in the Node dock's Signals tab. Built-in signals appear automatically; custom signals are defined in scripts.
How to Use
- Connect: Use
button.pressed.connect(_on_button_pressed). - Custom signals: Declare with
signal health_changed(new_health). - Emit: Call
health_changed.emit(50)to trigger connected functions. - One-shot: Use
connect(..., CONNECT_ONE_SHOT)for auto-disconnect.
Pro Tips
- Use
is_connected()before disconnecting to avoid errors. - Use autoloads (singletons) for global events like game state changes.
- Disconnect signals when nodes are removed to prevent dangling references.