Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

PlatformIcon.SetTexture

Declaration

public void SetTexture(Texture2D texture, int layer);

Parameters

layer Cannot be larger than PlatformIcon.maxLayerCount.

Description

Assign a texture to the specified layer.

Texture file must be stored in the project and instance obtained using AssetDatabase.LoadAssetAtPath.