unity_set_property
Sets a serialized property or component field on a Unity GameObject using its path and component, and resolves shorthand names like 'color' to serialized fields.
Instructions
Set any serialized property or component field. Auto-resolves 'color' -> m_Color style names. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)
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>",
"value": "<value>"
},
"name": "unity_set_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | GameObject path | |
| value | Yes | number, string, bool, [x,y,z], {r,g,b,a}, asset path or object path | |
| property | Yes | serialized property path, e.g. m_Size, fieldName, color | |
| component | Yes | component type name, e.g. Camera or MeshRenderer |