GetShortcutBinding(string)
Returns the active binding for the given shortcut ID.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.ShortcutManagement
- Assembly: UnityEditor.CoreModule
ShortcutBinding GetShortcutBinding(string shortcutId)
Parameters
ID of shortcut to retrieve binding for.
Returns
Type | Description |
|---|---|
| ShortcutBinding | Active binding for shortcut. |
Remarks
The return value depends on the active profile (IShortcutManager.activeProfileId). Throws if is . Throws if is not available, i.e. when IShortcutManager.GetAvailableShortcutIds does not contain .
ArgumentNullExceptionshortcutIdnullArgumentExceptionshortcutIdshortcutId