Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetPlatformIcons

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.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetPlatformIcons(BuildTargetGroup, PlatformIconKind)

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.
Warning
Deprecated. Use GetPlatformIcons(NamedBuildTarget , PlatformIconKind) instead
public static PlatformIcon[] GetPlatformIcons(BuildTargetGroup platform, PlatformIconKind kind)

Parameters

Returns

Type

Description

PlatformIcon[]

Remarks

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.

GetPlatformIcons(NamedBuildTarget, PlatformIconKind)

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.
public static PlatformIcon[] GetPlatformIcons(NamedBuildTarget buildTarget, PlatformIconKind kind)

Parameters

Returns

Type

Description

PlatformIcon[]

Remarks

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.