unity_gameobject_duplicate
Duplicate a GameObject in Unity, including all its children and components. Specify the original by path or instance ID, and optionally set a new name.
Instructions
Duplicate a GameObject with all its children and components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Hierarchy path or name of the GameObject to duplicate | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| newName | No | Name for the duplicate (default: original name + ' (Copy)') | |
| instanceId | No | Instance ID (alternative to path) |