Synced
AssetEditorAttribute.Constructor
Section titled “AssetEditorAttribute.Constructor”
- Creates an asset-editor registration for an imported runtime asset type.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Assets
Declaration
Section titled “Declaration”public Inno.Editor.Assets.AssetEditorAttribute.AssetEditorAttribute(System.Type assetType, bool useForChildren = false, int priority = 0)Parameters
Section titled “Parameters”Parameter assetType: The imported asset type handled by the editor.
Parameter useForChildren: Whether the editor may also handle assignable 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.