Skip to content

modify_game_object

Modifies one existing GameObject: name, active state, local position/rotation/scale, parent, layer, or tag.

Category: Scene

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

The arguments below are the required ones; add the optional ones you need.

{
"name": "modify_game_object",
"arguments": {
"object_path": "…"
}
}

When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "modify_game_object", "args": { … }}. See SuperSave mode.

Generated from Assets/NanoraUnityMCP/Editor/Tools/ModifyGameObjectTool.cs (version 1.2.1). The client receives the same schema from tools/list.