set_actor_label
Rename an editor-world actor's outliner label by matching its internal name or current label; invalid or empty labels are ignored, so verify the returned label.
Instructions
Set the outliner label of an editor-world actor found by internal name or current label (first match). The engine trims it and keeps the old label when the new one is invalid, for example empty, so check label in the reply. Marks the level dirty without an undo entry.
Returns: { actor_name: string, label: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_label | Yes | Display label to set, e.g. "Lamp_Kitchen"; leading and trailing spaces are trimmed. | |
| actor_name | Yes | Current actor name or label in the world outliner |