# GetTexture(string)

> Gets 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 Texture GetTexture(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property name of the texture value.

### Returns

| Type                                                              | Description                                                          |
| ----------------------------------------------------------------- | -------------------------------------------------------------------- |
| [Texture](/engine/6000.7/script-reference/unityengine/texture.md) | The texture property stored for the specified name, or null if none. |
