unity_asset_create_prefab
Creates a prefab from a scene GameObject. Provide the GameObject path and the save path for the prefab asset.
Instructions
Create a prefab from an existing GameObject in the scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| savePath | Yes | Where to save the prefab (e.g. 'Assets/Prefabs/MyPrefab.prefab') | |
| gameObjectPath | Yes | Path of the source GameObject in the hierarchy |