set_parent
Reparent a GameObject to a new parent or scene root, optionally preserving world transform or keeping local position relative to the new parent.
Instructions
Reparent existing GameObject. parent=null → move to scene root. world_position_stays=True (default): preserves world transform. False: stays local to new parent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| parent | No | ||
| world_position_stays | No |