unity_gameobject_reparent
Move a Unity GameObject to a new parent in the hierarchy. Specify the object by path or instance ID, and choose the parent (empty for root). Optionally preserve world position.
Instructions
Move a GameObject under a new parent in the hierarchy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Hierarchy path or name of the GameObject to move | |
| instanceId | No | Instance ID (alternative to path) | |
| newParent | No | Path of the new parent (empty string for scene root) | |
| worldPositionStays | No | Maintain world position after reparenting (default: true) | |
| 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. |