attach_script
Attaches a GDScript file to a specified node within a Godot scene, enabling script-based node behavior without opening the editor.
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 |