Synced
AssetIconAttribute
Section titled “AssetIconAttribute”
- Declares the icon used by the Asset Browser for an imported asset type or source extension.
Required contracts
Section titled “Required contracts”API: engine
Inherits: System.Attribute
Project: Inno.Editor.Assets.ImGui
Declaration
Section titled “Declaration”public sealed class Inno.Editor.Assets.ImGui.AssetIconAttribute : System.AttributeRemarks
Section titled “Remarks”Apply one or more declarations to a container type. The container has no runtime responsibility; it only keeps related icon declarations together so the type catalog can discover them.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | AssetIconAttribute.Constructor(System.String,System.String,System.Int32) | Creates an icon declaration for files ending with a source extension. |
| Constructors | AssetIconAttribute.Constructor(System.Type,System.String,System.Boolean,System.Int32) | Creates an icon declaration using a glyph from the Editor icon catalog. |
| Properties | AssetIconAttribute.assetType | Gets the imported asset type represented by this declaration, or null for an extension declaration. |
| Properties | AssetIconAttribute.extension | Gets the normalized source extension represented by this declaration, or null for a type declaration. |
| Properties | AssetIconAttribute.icon | Gets the Editor icon glyph to render. |
| Properties | AssetIconAttribute.priority | Gets the tie-breaking priority after target specificity. |
| Properties | AssetIconAttribute.useForChildren | Gets whether a type declaration may also represent derived asset types. Extension declarations always return false. |