unity_gameobject_duplicate
Duplicate a GameObject with all its children and components by specifying its hierarchy path or instance ID, optionally renaming the copy for scene organization.
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. |