ClutchShortcutAttribute
Registers a static method as the action for a clutch shortcut.
Read time 4 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.ShortcutManagement
- Assembly: UnityEditor.CoreModule
- Inherits from: ShortcutAttribute
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]public class ClutchShortcutAttribute : ShortcutAttribute
Remarks
A clutch shortcut is triggered when the user presses the key binding for the shortcut and also when the user releases the key. The method on which this attribute is placed must take a single argument of type ShortcutArguments.
You can bind a ClutchShortcutAttribute and a ShortcutAttribute to the same mouse button. In this case, the clutch shortcut triggers when the mouse button is slightly dragged and also when it is released.