# SetSharedMaterials(List<Material>)

> Assigns the shared materials of this renderer using the list of materials provided.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void SetSharedMaterials(List<Material> materials)
```

### Parameters

**** (\[List\<Material>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): A list of materials to assign to this renderer.

### Remarks

Use this method to set the [Renderer.sharedMaterials](/engine/6000.6/script-reference/unityengine/renderer/sharedmaterials.md) on this renderer using a list.

Additional Resources: [Renderer.sharedMaterials](/engine/6000.6/script-reference/unityengine/renderer/sharedmaterials.md).
