Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Creates one asset creation menu declaration.

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

public InnoEditor.Assets.AssetCreationMenuAttribute.AssetCreationMenuAttribute(string id, string menuPath, string extension, string defaultName, int groupOrder = 0, int itemOrder = 0, bool separatorBeforeGroup = false)

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.

Exception T:System.ArgumentException: Thrown when an identifier, path, source name, or native extension is invalid.