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
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectRef | Yes | Target GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345} | |
| componentRef | Yes | Component to modify. SCHEMA: {"typeName":"Transform"} | |
| componentDiff | Yes | SerializedMember diff. SCHEMA: {"props":[{"name":"size","value":{"x":2,"y":2,"z":2}}],"fields":[...]} |