Unity Set Component Property
unity_set_component_propertySet a specific property of a Unity component on a GameObject by providing its path, component type, property name, and value.
Instructions
Set a property on a component attached to a GameObject in Unity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"component": "<component>",
"property": "<property>"
},
"name": "unity_set_component_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path of the GameObject. | |
| component | Yes | Component type name (e.g. 'Transform', 'MeshRenderer'). | |
| property | Yes | Property name. | |
| value | No | Property value (JSON serializable). | |
| timeoutMs | No | Command timeout. |