unity_gameobject_reparent
Moves a GameObject to a new parent in the Unity hierarchy, optionally preserving world position. Specify object by path or instance ID.
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 | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| newParent | No | Path of the new parent (empty string for scene root) | |
| instanceId | No | Instance ID (alternative to path) | |
| worldPositionStays | No | Maintain world position after reparenting (default: true) |