# PlatformIcon

> Icon slot container.

## Definition

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

```csharp
public class PlatformIcon
```

## Properties

| Property                                                                                   | Description                                                                                                                 |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| [height](/engine/6000.7/script-reference/unityeditor/platformicon/height.md)               | The height of the icon in pixels.                                                                                           |
| [kind](/engine/6000.7/script-reference/unityeditor/platformicon/kind.md)                   | The [PlatformIconKind](/engine/6000.7/script-reference/unityeditor/platformiconkind.md) is specific to the target platform. |
| [layerCount](/engine/6000.7/script-reference/unityeditor/platformicon/layercount.md)       | The number of texture layers the icon slot currently contains.                                                              |
| [maxLayerCount](/engine/6000.7/script-reference/unityeditor/platformicon/maxlayercount.md) | The maximum number of texture layers required by the icon slot.                                                             |
| [minLayerCount](/engine/6000.7/script-reference/unityeditor/platformicon/minlayercount.md) | The minimum number of texture layers required by the icon slot.                                                             |
| [width](/engine/6000.7/script-reference/unityeditor/platformicon/width.md)                 | The width of the icon in pixels.                                                                                            |

## Methods

| Method                                                                                 | Description                                                                      |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [GetTexture](/engine/6000.7/script-reference/unityeditor/platformicon/gettexture.md)   | Retrieve the texture which is currently assigned to the specified layer.         |
| [GetTextures](/engine/6000.7/script-reference/unityeditor/platformicon/gettextures.md) | Retrieve an array of all textures which are currently assigned to the icon slot. |
| [SetTexture](/engine/6000.7/script-reference/unityeditor/platformicon/settexture.md)   | Assign a texture to the specified layer.                                         |
| [SetTextures](/engine/6000.7/script-reference/unityeditor/platformicon/settextures.md) | Assign all available icon layers.                                                |
