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

static function GetIconSizesForTargetGroup(platform: BuildTargetGroup): int[];
static int[] GetIconSizesForTargetGroup(BuildTargetGroup platform);
static def GetIconSizesForTargetGroup(platform as BuildTargetGroup) as int[]

Description

Returns a list of icon sizes for the specified platform.

Most platforms support viewing icons in multiple sizes so Unity lets you specify multiple icon textures for each platform. Use this function to get the sizes to use for the specified platform, where each size specifies both the width and height in pixels.