Method AddMaterial
AddMaterial(Renderer, Material)
Adds a material to this renderer's array of shared materials.
Declaration
public static void AddMaterial(this Renderer renderer, Material material)
Parameters
| Type | Name | Description |
|---|---|---|
| Renderer | renderer | The renderer on which to add the material. |
| Material | material | The material to add. |