Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates an icon declaration using a glyph from the Editor icon catalog.

API: engine
Project: Inno.Editor.Assets.ImGui

public Inno.Editor.Assets.ImGui.AssetIconAttribute.AssetIconAttribute(System.Type assetType, string icon, bool useForChildren = false, int priority = 0)

Parameter assetType: The imported asset type represented by the icon.

Parameter icon: The Editor icon glyph to render.

Parameter useForChildren: Whether the declaration may also represent derived asset types.

Parameter priority: The tie-breaking priority after exactness and inheritance distance.

Exception T:System.ArgumentNullException: Thrown when assetType is null.

Exception T:System.ArgumentException: Thrown when icon is empty.