Skip to content

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.

Category: Scene

Name Type Required Default Description
object_path string yes Path to the GameObject to delete

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

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

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

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