Synced
AssetIconAttribute.Constructor
Section titled “AssetIconAttribute.Constructor”
- Creates an icon declaration using a glyph from the Editor icon catalog.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Assets.ImGui
Declaration
Section titled “Declaration”public Inno.Editor.Assets.ImGui.AssetIconAttribute.AssetIconAttribute(System.Type assetType, string icon, bool useForChildren = false, int priority = 0)Parameters
Section titled “Parameters”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.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when assetType is null.
Exception T:System.ArgumentException: Thrown when icon is empty.