unity_renderer_set_material
Assign a material to a GameObject's renderer using asset and object paths, with an optional material slot index.
Instructions
Assign a material to a GameObject's renderer.
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": {
"gameObjectPath": "<gameObjectPath>",
"materialPath": "<materialPath>"
},
"name": "unity_renderer_set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| materialPath | Yes | Path to the material asset | |
| materialIndex | No | Material slot index (default: 0) | |
| gameObjectPath | Yes | Path to the target GameObject |