Set Parent
set_parentReparent Unity GameObjects to a new parent or scene root. Control transform preservation with world_position_stays option.
Instructions
Reparent existing GameObject. parent=null → move to scene root. world_position_stays=True (default): preserves world transform. False: stays local to new parent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "set_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Scene path of the GameObject to reparent | |
| parent | No | New parent scene path (omit or null = move to scene root) | |
| world_position_stays | No | True (default) = preserve world transform; False = keep local transform relative to new parent |