# SetSecondaryTexture(int, string, Texture2D)

> Sets the secondary texture usable by this renderer at the specified index with the specified shader property name.

## Definition

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

```csharp
public void SetSecondaryTexture(int index, string name, Texture2D texture)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index in the secondary texture array of this renderer where to set data.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The shader property name associated with the secondary texture.**** (\[Texture2D]\(/engine/6000.5/script-reference/unityengine/texture2d)): The secondary texture usable by this renderer in a shader.
