# layerCount

> The number of texture layers the icon slot currently contains.

## Definition

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

```csharp
public int layerCount { get; set; }
```

### Remarks

Cannot be smaller than [PlatformIcon.minLayerCount](/engine/6000.7/script-reference/unityeditor/platformicon/minlayercount.md) or larger than [PlatformIcon.maxLayerCount](/engine/6000.7/script-reference/unityeditor/platformicon/maxlayercount.md).
