# GetPopMaterial(int)

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

## Definition

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

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                                | Description |
| ------------------------------------------------------------------- | ----------- |
| [Material](/engine/6000.5/script-reference/unityengine/material.md) |             |
