Synced
AssetCreationMenuAttribute.Constructor
Section titled “AssetCreationMenuAttribute.Constructor”
- Creates one asset creation menu declaration.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Assets
Declaration
Section titled “Declaration”public Inno.Editor.Assets.AssetCreationMenuAttribute.AssetCreationMenuAttribute(string id, string menuPath, string extension, string defaultName, int groupOrder = 0, int itemOrder = 0, bool separatorBeforeGroup = false)Parameters
Section titled “Parameters”Parameter id: Globally stable template identifier.
Parameter menuPath: Slash-delimited path below the File Browser Create menu.
Parameter extension: Native source extension, including its leading dot.
Parameter defaultName: Default source name without an extension or numeric suffix.
Parameter groupOrder: Stable order of the top-level category below Create.
Parameter itemOrder: Stable order of the leaf within its immediate category.
Parameter separatorBeforeGroup: Whether the top-level category starts after a separator.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when an identifier, path, source name, or native extension is invalid.