Skip to main content

EditorHotKeys.Hotkey

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

An editor menu path bound to a key combination, turned into Unity's menu hotkey string.

Constructors​

MemberWhat it is
Hotkey()Creates an EditorHotKeys.Hotkey with default values.

Fields​

3 private and internal fields
MemberWhat it is
private EditorHotKeys.Hotkey.Key keyThe key.
private EditorHotKeys.Hotkey.Modifier modifierCtrl, Shift and Alt flags.
private string pathBacking field for Path.

Properties​

MemberWhat it is
string Path { get; }The menu path the hotkey is for.

Methods​

MemberWhat it is
string Evaluate()Returns the Unity menu hotkey suffix, such as _%#a for Ctrl+Shift+A.

Used in​

Members of other types that take, return or hold a Hotkey: