# SetTexture(string, Texture)

> Sets a texture property value by name.

## Definition

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

```csharp
public void SetTexture(string name, Texture value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property name of the texture value.**** (\[Texture]\(/engine/6000.7/script-reference/unityengine/texture)): The texture value to set.
