instantiate_scene
Add a packed scene as a child node in a Godot project, automatically handling resource references for efficient scene composition.
Instructions
Instantiate a packed scene (sub-scene) as a child node inside another scene. Adds the ext_resource entry automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene to add the instance into | |
| subScenePath | Yes | Packed scene to instantiate (e.g. res://enemies/Slime.tscn) | |
| parentNodePath | No | Parent node path (default: . = root of the scene) | |
| nodeName | No | Name for the instance node (defaults to scene filename without extension) |