unity_gameobject_reparent
Reparent a GameObject in the Unity hierarchy by specifying its path or instance ID, a new parent path, and 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. |