batch_modify
Batch modify multiple GameObjects matching a selector. Supports modifying transform, components, and properties. All changes are undoable.
Category: Batch
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
selector |
string | yes | U-Selector to match target objects (e.g., ‘.Enemy’, ‘#Player’, ‘[tag=Pickup]’) | |
modifications |
array | yes | List of modifications to apply | |
include_inactive |
boolean | false |
Include inactive GameObjects | |
dry_run |
boolean | false |
Preview changes without applying |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "batch_modify", "arguments": { "selector": "…", "modifications": [] }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "batch_modify", "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.