# GetDefaultCanvasTextMaterial()

> Returns the default material that can be used for rendering text elements on the Canvas.

## Definition

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

> **Warning:**
>
> **Deprecated.** Shared default material now used for text and general UI elements, call Canvas.GetDefaultCanvasMaterial()

```csharp
public static Material GetDefaultCanvasTextMaterial()
```

### Returns

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