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

API: scripting
Project: Inno.Editor.Assets.ImGui
Scope: Editor

public InnoEditor.Assets.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.