Skip to main content
Glama

gameobject-find

Locate GameObjects in Unity scenes or prefabs by name, ID, or path to retrieve their properties, components, and hierarchy structure for editing.

Instructions

Finds specific GameObject by provided information in opened Prefab or in a Scene. First it looks for the opened Prefab, if any Prefab is opened it looks only there ignoring a scene. If no opened Prefab it looks into current active scene. Returns GameObject information and its children. Also, it returns Components preview just for the target GameObject.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameObjectRefYesGameObject reference. SCHEMA: {"name":"Main Camera"} or {"instanceID":12345} or {"path":"Canvas/Panel/Button"}
includeDataNoInclude editable GameObject data (tag, layer, etc).false
includeComponentsNoInclude attached components references.false
includeBoundsNoInclude 3D bounds of the GameObject.false
includeHierarchyNoInclude hierarchy metadata.false
hierarchyDepthNoDetermines the depth of the hierarchy to include. 0 - means only the target GameObject. 1 - means to include one layer below.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server