# SetLoadingMaterial(Material)

> Set the loading material for the BatchRendererGroup.

## Definition

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

```csharp
public void SetLoadingMaterial(Material material)
```

### Parameters

**** (\[Material]\(/engine/6000.6/script-reference/unityengine/material)): The material to display while a shader is compiling. If this value is `null`, Unity does not display anything.

### Remarks

When you render with a `BatchRendererGroup` and a shader is currently compiling, Unity doesn't display the default [loading shader](/engine/6000.6/manual/materials-and-shaders/shaders/shader-troubleshooting/shader-error.md). Use this function to display a given material instead.
