PlatformIcon
Icon slot container.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public class PlatformIcon
Properties
Property | Description |
|---|---|
| height | The height of the icon in pixels. |
| kind | The PlatformIconKind is specific to the target platform. |
| layerCount | The number of texture layers the icon slot currently contains. |
| maxLayerCount | The maximum number of texture layers required by the icon slot. |
| minLayerCount | The minimum number of texture layers required by the icon slot. |
| width | The width of the icon in pixels. |
Methods
Method | Description |
|---|---|
| GetTexture | Retrieve the texture which is currently assigned to the specified layer. |
| GetTextures | Retrieve an array of all textures which are currently assigned to the icon slot. |
| SetTexture | Assign a texture to the specified layer. |
| SetTextures | Assign all available icon layers. |