Skip to main content
Glama

gameobject-component-modify

Modify specific components on GameObjects in Unity scenes or prefabs by directly editing component fields and properties. Use this tool to update component values after inspecting them with gameobject-component-get.

Instructions

Modify a specific Component on a GameObject in opened Prefab or in a Scene. Allows direct modification of component fields and properties without wrapping in GameObject structure. Use 'gameobject-component-get' first to inspect the component structure before modifying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameObjectRefYesTarget GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345}
componentRefYesComponent to modify. SCHEMA: {"typeName":"Transform"}
componentDiffYesSerializedMember diff. SCHEMA: {"props":[{"name":"size","value":{"x":2,"y":2,"z":2}}],"fields":[...]}

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