editor_duplicate_actor
Duplicate a loaded actor with its children and scripts into a scene or under a parent actor, then return the new actor's live details and record an Undo step.
Instructions
Duplicates a loaded actor, with its children and scripts, into a loaded scene or under a loaded parent actor. Returns the live details of the duplicate. Set exactly one of sceneId and parentId, and set the other to null. name is the name of the duplicate. Its children keep their names. translation, orientation and scale set the world transform of the duplicate. The source actor does not change. The editor records an Undo step. The scene stays unsaved until editor_save. To make a new actor of a type, use editor_create_actor. To move an actor to a different parent, use editor_reparent_actor.
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": {
"actorId": "<actorId>",
"name": "<name>",
"sceneId": "<sceneId>",
"parentId": "<parentId>",
"translation": "<translation>",
"orientation": "<orientation>",
"scale": "<scale>"
},
"name": "editor_duplicate_actor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| scale | Yes | ||
| actorId | Yes | ||
| sceneId | Yes | ||
| parentId | Yes | ||
| orientation | Yes | ||
| translation | 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 |