Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

PlayerSettings.GetPlatformIcons

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Declaration

public static PlatformIcon[] GetPlatformIcons(Build.NamedBuildTarget buildTarget, PlatformIconKind kind);
Obsolete Use GetPlatformIcons(NamedBuildTarget , PlatformIconKind) instead.

Declaration

public static PlatformIcon[] GetPlatformIcons(BuildTargetGroup platform, PlatformIconKind kind);

Parameters

Parameter Description
buildTarget The NamedBuildTarget.
kind The PlatformIconKind.

Description

Gets the list of available icon slots for the specified build target and kind. The BuildTargetGroup overload is marked for deprecation in the future; use the NamedBuildTarget overload.

Returns the PlatformIcon slot array for the given build target and kind. Slot count is fixed per platform and kind. Assign textures to each slot using PlatformIcon.SetTexture or PlatformIcon.SetTextures. Pass the same array to PlayerSettings.SetPlatformIcons.

Additional resources: PlayerSettings.SetPlatformIcons, PlayerSettings.GetSupportedIconKinds, PlayerSettings.SetIcons.