Skip to main content
Glama

gameobject-set-parent

Reparent GameObjects in Unity scenes or prefabs to organize hierarchies, set new parent-child relationships, or unparent objects while optionally maintaining world positions.

Instructions

Set parent GameObject to list of GameObjects in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObjects first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameObjectRefsYesArray of GameObjectRef to reparent. SCHEMA: [{"name":"ChildObject"}]
parentGameObjectRefYesNew parent. SCHEMA: {"name":"ParentObject"} or {"instanceID":12345}. Use null to unparent.
worldPositionStaysNoA boolean flag indicating whether the GameObject's world position should remain unchanged when setting its parent.true

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