modify_game_object
Modifies one existing GameObject: name, active state, local position/rotation/scale, parent, layer, or tag.
分類: シーン
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
object_path |
string | 必須 | Path to the GameObject to modify | |
new_name |
string | New name for the GameObject | ||
active |
boolean | Set active state | ||
position |
object | New local position | ||
rotation |
object | New local rotation in euler angles | ||
scale |
object | New local scale | ||
new_parent_path |
string | Path to new parent GameObject (empty string to unparent) | ||
layer |
string | Layer name to set | ||
tag |
string | Tag to set |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "modify_game_object", "arguments": { "object_path": "…" }}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "modify_game_object", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/ModifyGameObjectTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。