文档

Unity Engine

Unity Engine

GetShortcutBinding(string)

Returns the active binding for the given shortcut ID.
阅读时间1 分钟最后更新于 1 个月前

Definition

ShortcutBinding GetShortcutBinding(string shortcutId)

Parameters

shortcutId

ID of shortcut to retrieve binding for.

Returns

Type

Description

ShortcutBindingActive binding for shortcut.

Remarks

The return value depends on the active profile (IShortcutManager.activeProfileId). Throws
ArgumentNullException
if
shortcutId
is
null
. Throws
ArgumentException
if
shortcutId
is not available, i.e. when IShortcutManager.GetAvailableShortcutIds does not contain
shortcutId
.