Skip to main content
Glama

gameobject-component-add

Add components to GameObjects in Unity scenes or prefabs by specifying component type names and target object references.

Instructions

Add Component to GameObject in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first. Use 'gameobject-component-list-all' tool to find the component type names to add.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentNamesYesArray of component type names to add. Example: ["BoxCollider","Rigidbody"]
gameObjectRefYesTarget GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345} or {"path":"hierarchy/path"}

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