material_color
Set color properties on Unity materials using RGBA values. Specify material path and color components to modify shader properties like _Color.
Instructions
Set a color property on a material. Default property is '_Color' (main color). Color values are 0-1 floats.
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": {
"materialPath": "<materialPath>"
},
"name": "material_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| materialPath | Yes | Asset path to the material (e.g. Assets/Materials/Wood.mat) | |
| propertyName | No | Shader property name (default: '_Color') | _Color |
| r | No | Red (0-1) | |
| g | No | Green (0-1) | |
| b | No | Blue (0-1) | |
| a | No | Alpha (0-1) |