attach_script
Attach an existing GDScript to a node in a scene. Provide the project, scene, node, and script paths to bind the script to the intended node.
Instructions
Attach an existing GDScript to a node in a scene
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodePath | Yes | Path to the target node | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| scriptPath | Yes | Path to the script file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory |