Command · entity
entity.reparent
Move an entity under a new parent (or to the root) at a position among its siblings.
scope edit:sceneidempotentnon-destructive
Params
Typed as EntityReparentParams. Fields marked * are required.
entity*
entityThe entity to move. Must be a record of the document (not inside a prefab).
required
parent
option<entity>New parent; absent makes the entity a root.
default null
index
option<u32>Position among the new siblings; absent appends.
default null
Examples
JSON (MCP ara_apply, batches)
{
"cmd": "entity.reparent",
"args": {
"entity": "e_8b21",
"parent": "e_1c0d",
"index": 0
}
}CLI
ara do entity.reparent --args '{"entity":"e_8b21","parent":"e_1c0d","index":0}' --why "…"JSON (MCP ara_apply, batches)
{
"cmd": "entity.reparent",
"args": {
"entity": "e_8b21"
}
}CLI
ara do entity.reparent --args '{"entity":"e_8b21"}' --why "…"