set_selection
Select entities or assets by ID to display them in the inspector and highlight them in the viewport and tree. Empty selection clears.
Instructions
Replace the editor's selection with the given entities or assets. Selecting shows them in the inspector and highlights them in the viewport/tree. Pass type "entity" (ids are resource_ids) or "asset" (ids are numbers). An empty ids array clears the selection. When NOT to use: to modify the selected items (use modify_entities) or to frame them in the viewport (use focus_viewport).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Ids to select (entity resource_ids or asset ids); empty clears the selection | |
| type | Yes | What kind of items the ids refer to |