connect_signal
Connect a signal from one node to a method on another node in a Godot .tscn scene on disk. Specify project and scene paths, source/target nodes, signal and method names.
Instructions
Connect a signal from one node to a method on another node in a scene file (.tscn) on disk. For runtime signal monitoring, use subscribe_signals or send_key_sequence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Path to the scene file (relative to project) | |
| methodName | Yes | Name of the method to call (e.g., "_on_button_pressed") | |
| signalName | Yes | Name of the signal (e.g., "pressed") | |
| projectPath | Yes | Path to the Godot project directory | |
| sourceNodePath | Yes | Path to the node emitting the signal (e.g., "root/Button") | |
| targetNodePath | Yes | Path to the node receiving the signal (e.g., "root") |