connect_signal
Connects a Godot scene node's signal to a target node's method, allowing events to trigger code across nodes.
Instructions
Connect a signal from one node to a method on another node in a scene
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Scene file relative to project | |
| methodName | Yes | Method name on the target, e.g. _on_button_pressed | |
| signalName | Yes | Signal name, e.g. pressed | |
| sourceNode | Yes | Emitting node path like root/Button | |
| targetNode | Yes | Receiving node path like root/Main | |
| projectPath | Yes | Path to the Godot project directory |