# SetTexture(Texture)

> Sets the texture used by this renderer's material.

## Definition

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

```csharp
public void SetTexture(Texture texture)
```

### Parameters

**** (\[Texture]\(/engine/6000.0/script-reference/unityengine/texture)):&#x20;
