destroy_objects
Destroy multiple GameObjects matching a selector. Supports undo.
Category: Batch
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
selector |
string | yes | U-Selector to match target objects | |
include_inactive |
boolean | false |
Include inactive objects | |
confirm |
boolean | yes | false |
Confirm destruction (must be true to proceed) |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "destroy_objects", "arguments": { "selector": "…", "confirm": false }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "destroy_objects", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/BatchModifyTool.cs (version 1.2.1). The client receives the same schema from tools/list.