unity_gameobject_duplicate
Create a copy of a GameObject with all children and components. Use hierarchy path or instance ID to identify the object, 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 | |
| instanceId | No | Instance ID (alternative to path) | |
| newName | No | Name for the duplicate (default: original name + ' (Copy)') | |
| 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. |