# SetTextures(params Texture2D[])

> Assign all available icon layers.

## Definition

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

## SetTextures(Texture2D\[])

```csharp
public void SetTextures(params Texture2D[] textures)
```

### Parameters

**** (\[Texture2D\[]]\(/engine/6000.7/script-reference/unityengine/texture2d)): Must be an array of size [PlatformIcon.maxLayerCount](/engine/6000.7/script-reference/unityeditor/platformicon/maxlayercount.md).

### Remarks

Will overwrite all the currently set icon layers. Texture files must be stored in the project and instances obtained using [AssetDatabase.LoadAssetAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadassetatpath.md).
