Version: 2023.2

ClutchShortcutAttribute

class in UnityEditor.ShortcutManagement

/

继承自:ShortcutManagement.ShortcutAttribute

切换到手册

描述

Registers a static method as the action for a clutch shortcut.

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.

构造函数

ClutchShortcutAttribute使用 ID、可选上下文和可选默认绑定为控制快捷方式 创建属性。

继承的成员

变量

displayName在配置界面中列出快捷方式时,快捷方式 ID 的可选覆盖。