repair_materials
Repair material issues by upgrading shaders to the current render pipeline. Can automatically fix pink materials and pipeline incompatibilities.
分類: マテリアル
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
scope |
string | "scene" |
Scope of repair. 値: scene, project, selection |
|
dry_run |
boolean | true |
Preview changes without applying them | |
target_shader |
string | Specific shader to upgrade to (auto-detected if not specified) | ||
fix_missing_shaders |
boolean | true |
Replace materials with missing shaders | |
upgrade_legacy |
boolean | true |
Upgrade legacy/built-in shaders to pipeline shaders |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "repair_materials", "arguments": {}}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "repair_materials", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/MaterialDiagnosticTools.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。