Skip to main content

EditorHotKeys

A class in Root.Township, the global namespace.

Asset listing editor menu paths and the hotkeys to bind to them.

Constructors​

MemberWhat it is
EditorHotKeys()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private EditorHotKeys.Hotkey[] hotkeysThe configured hotkeys, each a menu path, modifier flags and key.

Methods​

MemberWhat it is
Dictionary<string, string> GetMap()Returns a map from menu path to Unity menu shortcut text (such as _%#a) for each hotkey.