unity_renderer_set_material
Assign a material to a GameObject's renderer by specifying the object path, material asset path, and optional material index.
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. |