# GetPlatformIcons

> Gets the list of available icon slots for the specified build target and kind. The BuildTargetGroup overload is marked for deprecation in the future; use the NamedBuildTarget overload.

## Definition

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

## GetPlatformIcons(BuildTargetGroup, PlatformIconKind)

Gets the list of available icon slots for the specified build target and [kind](/engine/6000.6/script-reference/unityeditor/platformiconkind.md). The [BuildTargetGroup](/engine/6000.6/script-reference/unityeditor/buildtargetgroup.md) overload is marked for deprecation in the future; use the NamedBuildTarget overload.

> **Warning:**
>
> **Deprecated.** Use GetPlatformIcons(NamedBuildTarget , PlatformIconKind) instead

```csharp
public static PlatformIcon[] GetPlatformIcons(BuildTargetGroup platform, PlatformIconKind kind)
```

### Parameters

**** (\[BuildTargetGroup]\(/engine/6000.6/script-reference/unityeditor/buildtargetgroup)): **** (\[PlatformIconKind]\(/engine/6000.6/script-reference/unityeditor/platformiconkind)): The [PlatformIconKind](/engine/6000.6/script-reference/unityeditor/platformiconkind.md).

### Returns

| Type                                                                            | Description |
| ------------------------------------------------------------------------------- | ----------- |
| [PlatformIcon\[\]](/engine/6000.6/script-reference/unityeditor/platformicon.md) |             |

### Remarks

Returns the [PlatformIcon](/engine/6000.6/script-reference/unityeditor/platformicon.md) slot array for the given build target and kind. Slot count is fixed per platform and kind. Assign textures to each slot using [PlatformIcon.SetTexture](/engine/6000.6/script-reference/unityeditor/platformicon/settexture.md) or [PlatformIcon.SetTextures](/engine/6000.6/script-reference/unityeditor/platformicon/settextures.md). Pass the same array to [PlayerSettings.SetPlatformIcons](/engine/6000.6/script-reference/unityeditor/playersettings/setplatformicons.md).

Additional Resources: [PlayerSettings.SetPlatformIcons](/engine/6000.6/script-reference/unityeditor/playersettings/setplatformicons.md), [PlayerSettings.GetSupportedIconKinds](/engine/6000.6/script-reference/unityeditor/playersettings/getsupportediconkinds.md), [PlayerSettings.SetIcons](/engine/6000.6/script-reference/unityeditor/playersettings/seticons.md).

## GetPlatformIcons(NamedBuildTarget, PlatformIconKind)

Gets the list of available icon slots for the specified build target and [kind](/engine/6000.6/script-reference/unityeditor/platformiconkind.md). The [BuildTargetGroup](/engine/6000.6/script-reference/unityeditor/buildtargetgroup.md) overload is marked for deprecation in the future; use the NamedBuildTarget overload.

```csharp
public static PlatformIcon[] GetPlatformIcons(NamedBuildTarget buildTarget, PlatformIconKind kind)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.6/script-reference/unityeditor/build/namedbuildtarget)): The [NamedBuildTarget](/engine/6000.6/script-reference/unityeditor/build/namedbuildtarget.md).**** (\[PlatformIconKind]\(/engine/6000.6/script-reference/unityeditor/platformiconkind)): The [PlatformIconKind](/engine/6000.6/script-reference/unityeditor/platformiconkind.md).

### Returns

| Type                                                                            | Description |
| ------------------------------------------------------------------------------- | ----------- |
| [PlatformIcon\[\]](/engine/6000.6/script-reference/unityeditor/platformicon.md) |             |

### Remarks

Returns the [PlatformIcon](/engine/6000.6/script-reference/unityeditor/platformicon.md) slot array for the given build target and kind. Slot count is fixed per platform and kind. Assign textures to each slot using [PlatformIcon.SetTexture](/engine/6000.6/script-reference/unityeditor/platformicon/settexture.md) or [PlatformIcon.SetTextures](/engine/6000.6/script-reference/unityeditor/platformicon/settextures.md). Pass the same array to [PlayerSettings.SetPlatformIcons](/engine/6000.6/script-reference/unityeditor/playersettings/setplatformicons.md).

Additional Resources: [PlayerSettings.SetPlatformIcons](/engine/6000.6/script-reference/unityeditor/playersettings/setplatformicons.md), [PlayerSettings.GetSupportedIconKinds](/engine/6000.6/script-reference/unityeditor/playersettings/getsupportediconkinds.md), [PlayerSettings.SetIcons](/engine/6000.6/script-reference/unityeditor/playersettings/seticons.md).
