Version: 2022.3
public void SetTexture (Texture2D texture, int layer);

参数

layer 不能大于 PlatformIcon.maxLayerCount

描述

为指定层分配纹理。

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