Skip to main content

AltaMenuItemBase

A class in Alta.MenuItem, the global namespace.

Root of a nested class tree that mirrors Unity editor menu paths. Menu items inherit from a nested class, and the class path (underscores as spaces) becomes the menu path. Editor tooling.

Constructors​

MemberWhat it is
AltaMenuItemBase()Creates an AltaMenuItemBase with default values.

Fields​

1 private and internal field
MemberWhat it is
private static readonly Dictionary<Type, AltaMenuItem> menuItemsCache of menu item instances by type.

Methods​

MemberWhat it is
static AltaMenuItem GetItem<T>()Returns a cached instance of the given menu item type, creating it on first use.