modify_game_object
Modifies one existing GameObject: name, active state, local position/rotation/scale, parent, layer, or tag.
Category: Scene
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
object_path |
string | yes | 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 |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "modify_game_object", "arguments": { "object_path": "…" }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "modify_game_object", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/ModifyGameObjectTool.cs (version 1.2.1). The client receives the same schema from tools/list.