コンテンツにスキップ

batch_modify

Batch modify multiple GameObjects matching a selector. Supports modifying transform, components, and properties. All changes are undoable.

分類: 一括操作

名前 型 必須 既定値 説明
selector string 必須 U-Selector to match target objects (e.g., ‘.Enemy’, ‘#Player’, ‘[tag=Pickup]’)
modifications array 必須 List of modifications to apply
include_inactive boolean false Include inactive GameObjects
dry_run boolean false Preview changes without applying

必須の引数だけを入れています。ほかは必要に応じて足してください。

{
"name": "batch_modify",
"arguments": {
"selector": "…",
"modifications": []
}
}

Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "batch_modify", "args": { … }} の形で呼びます。SuperSave モードを参照。

Assets/NanoraUnityMCP/Editor/Tools/BatchModifyTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。