# GetPopMaterial(int)

> Gets the current Material assigned to the CanvasRenderer. Used internally for masking.

## Definition

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

```csharp
public Material GetPopMaterial(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The material index.

### Returns

| Type                                                                | Description                                                     |
| ------------------------------------------------------------------- | --------------------------------------------------------------- |
| [Material](/engine/7000.0/script-reference/unityengine/material.md) | The material used for the pop draw call at the specified index. |
