ue_attach_actor
Attach a child actor to a parent actor. When the parent moves, the child follows, simplifying scene assembly by linking objects.
Instructions
Aggancia un attore a un altro: muovendo il padre si muove il figlio.
È il modo in cui si compone una scena (le luci a un lampione, le casse su un pallet) invece di lasciare oggetti slegati da riposizionare uno per uno.
Args: child_label: label dell'attore da agganciare. parent_label: label dell'attore padre. socket: nome del socket sul padre, se ne ha. attach_rule: "KEEP_WORLD" (resta dov'è), "KEEP_RELATIVE" o "SNAP_TO_TARGET" (si allinea al padre).
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": {
"child_label": "<child_label>",
"parent_label": "<parent_label>"
},
"name": "ue_attach_actor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| socket | No | ||
| attach_rule | No | KEEP_WORLD | |
| child_label | Yes | ||
| parent_label | Yes |