# GetTextures()

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

## Definition

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

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

### Returns

| Type                                                                      | Description                                                                                                                    |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [Texture2D\[\]](/engine/6000.7/script-reference/unityengine/texture2d.md) | An array of the [Texture2D](/engine/6000.7/script-reference/unityengine/texture2d.md) assigned to each layer of the icon slot. |
