unity_renderer_set_material
Assign a specific material to a GameObject's renderer slot. Provide the path to the GameObject and material asset, with an optional index for multi-material renderers.
Instructions
Assign a material to a GameObject's renderer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectPath | Yes | Path to the target GameObject | |
| materialPath | Yes | Path to the material asset | |
| materialIndex | No | Material slot index (default: 0) | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |