文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

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.
警告
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.