delete_game_object
Deletes a GameObject (and all of its children) from the open scene, with Undo support. object_path is resolved as a hierarchy path first, then as an exact name across all loaded objects (first match wins). Returns an error when nothing matches. To delete several objects by selector, use destroy_objects.
分類: シーン
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
object_path |
string | 必須 | Path to the GameObject to delete |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "delete_game_object", "arguments": { "object_path": "…" }}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "delete_game_object", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/DeleteGameObjectTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。