Pixmap Icon16 { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Icon16 property provides a 16x16 pixel icon representation for a specific asset type within the editor. This icon is typically used in user interfaces where a small, recognizable image is needed to represent the asset type visually.

Usage

To access the Icon16 property, you need to have an instance of the Editor.AssetType class. This property is not static, so it must be accessed through an object of the class. The property returns an Editor.Pixmap object, which can be used to display the icon in the UI.

Example

// Example of accessing the Icon16 property
Editor.AssetType assetType = Editor.AssetType.Model;
Editor.Pixmap icon16 = assetType.Icon16;

// Use the icon16 Pixmap in your UI code
// For example, setting it as an icon in a UI element
// myUIElement.SetIcon(icon16);