SetRendererMaterial

Set the Renderer material.

SetRendererMaterial

Properties

Property Name Description
Renderer Renderer of interest.
Material Index Index of target material
See the various Renderer Materials (eg Mesh Renderer Materials) to see which material the index is.
Material Material to set.

Remarks

Materials are set in Renderer.sharedMaterials.