| Parameter | Description |
|---|---|
| texture | The texture to assign. |
| layer | Cannot be larger than PlatformIcon.maxLayerCount. |
Assign a texture to the specified layer.
Texture file must be stored in the project and instance obtained using AssetDatabase.LoadAssetAtPath.