Instantiate Prefab
unity_instantiate_prefabInstantiates a prefab from an asset path into the active scene, preserving the prefab link for future overrides.
Instructions
Instantiate a prefab from an asset path into the active scene (Undo-able). Keeps the prefab link so overrides can be applied later.
Args: prefab_path ('Assets/Prefabs/Enemy.prefab'), name override (optional), position/rotation, parent_path (optional). Find prefabs first with unity_list_assets type='Prefab'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Override instance name (default keeps prefab name) | |
| position | No | World position as [x, y, z] (default 0,0,0) | |
| rotation | No | World rotation euler degrees as [x, y, z] (default 0,0,0) | |
| parent_path | No | Optional hierarchy path of the parent | |
| prefab_path | Yes | Project-relative asset path, e.g. 'Assets/Prefabs/Enemy.prefab' |