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

参数

layer 不能大于 PlatformIcon.maxLayerCount

描述

为指定层分配纹理。

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