editor_reparent_actor
Moves a loaded actor to a new loaded parent or scene root while recording Undo/Redo history, with an explicit choice to preserve or reset its world transform.
Instructions
Moves a loaded actor to another loaded parent or to a loaded scene root through Undo/Redo history. Set exactly one of sceneId or parentId and explicitly choose whether to preserve the world transform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actorId | Yes | Actor GUID from editor_scene_graph. | |
| sceneId | Yes | ||
| parentId | Yes | ||
| preserveWorldTransform | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| tags | Yes | ||
| layer | Yes | ||
| sceneId | Yes | ||
| scripts | Yes | ||
| isActive | Yes | ||
| parentId | Yes | ||
| typeName | Yes | ||
| layerName | Yes | ||
| transform | Yes | ||
| mainThreadId | Yes | ||
| localTransform | Yes | ||
| isActiveInHierarchy | Yes |