SetIcons(NamedBuildTarget, Texture2D[], IconKind)
Assigns a list of icons for the specified platform.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static void SetIcons(NamedBuildTarget buildTarget, Texture2D[] icons, IconKind kind)
Parameters
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.
- The Editor supports the specified platform.
Only iOS supports icons which have an IconKind other than IconKind.Application. Unity copies Icons assigned to IconKind.Application, IconKind.Settings, IconKind.Notification, and IconKind.Spotlight to the appropriate slots in the generated Xcode project.
On Android, affects only launcher icons as IconKind values map to . For Adaptive or Round icons, use PlayerSettings.GetPlatformIcons and PlayerSettings.SetPlatformIcons. Calling the method with an empty Texture2D array removes all icons currently set for IconKind.
SetIconsLegacyLegacyAdditional Resources: PlayerSettings.GetPlatformIcons, PlayerSettings.SetPlatformIcons, PlayerSettings.GetIconSizes, PlayerSettings.SetIconsForTargetGroup (deprecated overload).