Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetShortcutBinding(string)

Returns the active binding for the given shortcut ID.
Read time 1 minuteLast updated 12 days ago

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
.