IsShortcutOverridden(string)
Does the active profile override the binding for the given shortcut ID?
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: UnityEditor.ShortcutManagement
- Assembly: UnityEditor.CoreModule
bool IsShortcutOverridden(string shortcutId)
Parameters
ID of shortcut to determine overridden status for.
Returns
Type | Description |
|---|---|
| bool | |
Remarks
Returns if the profile referenced by IShortcutManager.activeProfileId overrides the binding for the given shortcut ID. This includes the cases where the binding is overridden to the same as the default or to the empty binding. It returns false if the active profile does not specify a binding for the given shortcut ID.
trueThrows if is . Throws if is not available, i.e. when IShortcutManager.GetAvailableShortcutIds does not contain .
ArgumentNullExceptionshortcutIdnullArgumentExceptionshortcutIdshortcutId