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.


Did you find this page useful? Please give it a rating: