Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerSettings.SetIconsForTargetGroup

static function SetIconsForTargetGroup(platform: BuildTargetGroup, icons: Texture2D[]): void;
static void SetIconsForTargetGroup(BuildTargetGroup platform, Texture2D[] icons);
static def SetIconsForTargetGroup(platform as BuildTargetGroup, icons as Texture2D[]) as void

Description

Assign a list of icons for the specified platform.

Most platforms support viewing icons in multiple sizes so Unity lets you specify multiple icon textures for each platform. The list will only be assigned if it has the same length as the list of icon sizes returned by GetIconSizesForTargetGroup and if the specified platform is supported in this editor.