Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ShortcutAttribute.displayName

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public string displayName;

Description

Optional override of the Shortcut ID when listing the Shortcut in the configuration interface.

Allows the shortcut to be displayed in a different category and with a different name than the Shortcut ID, so allows developers to rename or recategorize Shortcuts while preserving existing mappings. Defaults to Shortcut ID.