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.GetIconsForTargetGroup

static function GetIconsForTargetGroup(platform: BuildTargetGroup): Texture2D[];
static Texture2D[] GetIconsForTargetGroup(BuildTargetGroup platform);
static def GetIconsForTargetGroup(platform as BuildTargetGroup) as Texture2D[]

Description

Returns the list of assigned icons for the specified platform.

Most platforms support viewing icons in multiple sizes so Unity lets you specify multiple icon textures for each platform. Each texture in the returned array correspond to the corresponding entry in the list of icon sizes returned by GetIconSizesForTargetGroup.