Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsShortcutOverridden(string)

Does the active profile override the binding for the given shortcut ID?
Read time 1 minuteLast updated 14 days ago

Definition

bool IsShortcutOverridden(string shortcutId)

Parameters

shortcutId

ID of shortcut to determine overridden status for.

Returns

Type

Description

bool
true
if the shortcut with ID
shortcutId
is overridden in the active profile; otherwise,
false
.

Remarks

Returns
true
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.
Throws
ArgumentNullException
if
shortcutId
is
null
. Throws
ArgumentException
if
shortcutId
is not available, i.e. when IShortcutManager.GetAvailableShortcutIds does not contain
shortcutId
.