# GetTextures()

> Retrieve an array of all textures which are currently assigned to the icon slot.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Texture2D[] GetTextures()
```

### Returns

| Type                                                                      | Description |
| ------------------------------------------------------------------------- | ----------- |
| [Texture2D\[\]](/engine/6000.5/script-reference/unityengine/texture2d.md) |             |
