unity_asset_create_prefab
Create a prefab from an existing GameObject in a Unity scene by specifying the object's hierarchy path and a save location. This tool automates prefab creation, solving the need for manual asset setup.
Instructions
Create a prefab from an existing GameObject in the scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectPath | Yes | Path of the source GameObject in the hierarchy | |
| savePath | Yes | Where to save the prefab (e.g. 'Assets/Prefabs/MyPrefab.prefab') | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |