# SetIcons(NamedBuildTarget, Texture2D[], IconKind)

> Assigns a list of icons for the specified platform.

## Definition

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

```csharp
public static void SetIcons(NamedBuildTarget buildTarget, Texture2D[] icons, IconKind kind)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.3/script-reference/unityeditor/build/namedbuildtarget)): The [NamedBuildTarget](/engine/6000.3/script-reference/unityeditor/build/namedbuildtarget.md).**** (\[Texture2D\[]]\(/engine/6000.3/script-reference/unityengine/texture2d)): **** (\[IconKind]\(/engine/6000.3/script-reference/unityeditor/iconkind)):&#x20;

### Remarks

Most platforms support viewing icons in multiple sizes so Unity lets you specify multiple icon textures for each platform. Unity only assigns the list of icons if the following is true:

* The list is the same length as the list of icon sizes returned by [PlayerSettings.GetIconSizes](/engine/6000.3/script-reference/unityeditor/playersettings/geticonsizes.md).
* The Editor supports the specified platform.

Only iOS supports icons which have an [IconKind](/engine/6000.3/script-reference/unityeditor/iconkind.md) other than [IconKind.Application](/engine/6000.3/script-reference/unityeditor/iconkind/application.md). Unity copies Icons assigned to [IconKind.Application](/engine/6000.3/script-reference/unityeditor/iconkind/application.md), [IconKind.Settings](/engine/6000.3/script-reference/unityeditor/iconkind/settings.md), [IconKind.Notification](/engine/6000.3/script-reference/unityeditor/iconkind/notification.md), and [IconKind.Spotlight](/engine/6000.3/script-reference/unityeditor/iconkind/spotlight.md) to the appropriate slots in the generated Xcode project.

On Android, `SetIcons` affects only `Legacy` launcher icons as [IconKind](/engine/6000.3/script-reference/unityeditor/iconkind.md) values map to `Legacy`. For Adaptive or Round icons, use [PlayerSettings.GetPlatformIcons](/engine/6000.3/script-reference/unityeditor/playersettings/getplatformicons.md) and [PlayerSettings.SetPlatformIcons](/engine/6000.3/script-reference/unityeditor/playersettings/setplatformicons.md). Calling the method with an empty Texture2D array removes all icons currently set for [IconKind](/engine/6000.3/script-reference/unityeditor/iconkind.md).

Additional Resources: [PlayerSettings.GetPlatformIcons](/engine/6000.3/script-reference/unityeditor/playersettings/getplatformicons.md), [PlayerSettings.SetPlatformIcons](/engine/6000.3/script-reference/unityeditor/playersettings/setplatformicons.md), [PlayerSettings.GetIconSizes](/engine/6000.3/script-reference/unityeditor/playersettings/geticonsizes.md), [PlayerSettings.SetIconsForTargetGroup](/engine/6000.3/script-reference/unityeditor/playersettings/seticonsfortargetgroup.md) (deprecated overload).
