set_active
Set the active state of GameObjects matching a selector.
Category: Batch
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
selector |
string | yes | U-Selector to match target objects | |
active |
boolean | yes | Active state to set | |
include_inactive |
boolean | true |
Include inactive objects in search |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "set_active", "arguments": { "selector": "…", "active": true }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "set_active", "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.