# GetTextures()

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

## Definition

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

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

### Returns

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