Class GDXShortcutAttribute
Inheritance
System.Object
System.Attribute
UnityEditor.ShortcutManagement.ShortcutBaseAttribute
UnityEditor.ShortcutManagement.ShortcutAttribute
GDXShortcutAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
UnityEditor.ShortcutManagement.ShortcutAttribute.displayName
Namespace: GDX.Editor
Syntax
public class GDXShortcutAttribute : ShortcutAttribute, _Attribute
Constructors
| Improve this Doc View SourceGDXShortcutAttribute(String, KeyCode, ShortcutModifiers, Type)
GDXShortcutAttribute Constructor
Declaration
public GDXShortcutAttribute(string id, KeyCode defaultKeyCode, ShortcutModifiers defaultShortcutModifiers = ShortcutModifiers.None, Type context = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Id to register the shortcut. It will automatically be prefix by 'GDX/' in order to be in the 'GDX' section of the shortcut manager. |
UnityEngine.KeyCode | defaultKeyCode | Optional key code for default binding. |
UnityEditor.ShortcutManagement.ShortcutModifiers | defaultShortcutModifiers | Optional shortcut modifiers for default binding. |
System.Type | context | Any context which limits the use of the shortcut. |
Implements
System.Runtime.InteropServices._Attribute