unity_material_create
Create a material asset with a specified shader, color, and properties. Define the save path and optionally overwrite existing materials.
Instructions
Create a new material asset with a specified shader and properties.
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>"
},
"name": "unity_material_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Save path (e.g. 'Assets/Materials/MyMat.mat') | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| color | No | ||
| shader | No | Shader name (e.g. 'Standard', 'Universal Render Pipeline/Lit') | |
| overwrite | No | Replace an existing material (default false). | |
| properties | No | Additional shader properties as key-value pairs |