attach_script
Attach a GDScript file to a specific node in a Godot scene using project, scene, node, and script paths, enabling script integration and automated scene setup without manual editor steps.
Instructions
Attach a GDScript to a scene node (headless)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodePath | Yes | Path to the node within the scene (e.g., "root/Player") | |
| scenePath | Yes | Scene file path (relative to project) | |
| scriptPath | Yes | Path to the .gd script file (relative to project) | |
| projectPath | Yes | Godot project path |