instance_scene
Instances a scene file as a child node inside a parent scene, enabling modular scene composition for Godot projects.
Instructions
Instance a scene (.tscn) as a child node inside another scene. This is THE #1 pattern in Godot — create Player.tscn, Enemy.tscn separately, then instance them inside Level.tscn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Path to the parent scene file (e.g. scenes/level.tscn) | |
| instancePath | Yes | Path to the scene to instance (e.g. scenes/player.tscn) | |
| instanceName | No | Optional name for the instanced node | |
| parentPath | No | Optional parent node path (default: root) | |
| position | No | Optional position [x,y] for 2D or [x,y,z] for 3D |