GetTexture(int)
Retrieve the texture which is currently assigned to the specified layer.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public Texture2D GetTexture(int layer = 0)
Parameters
Cannot be larger than PlatformIcon.maxLayerCount.
Returns
Type | Description |
|---|---|
| Texture2D |