Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShortcutBinding

Represents a key binding used to trigger a shortcut.
Read time 1 minuteLast updated 12 days ago

Definition

public struct ShortcutBinding : IEquatable<ShortcutBinding>

Constructors

Constructor

Description

ShortcutBinding(UnityEditor.ShortcutManagement.KeyCombination)Creates a shortcut binding from a single key combination.

Properties

Property

Description

keyCombinationSequenceThe sequence of key combinations required to trigger a shortcut with this binding.

Static Properties

Property

Description

emptyA key combination representing the empty binding.

Methods

Method

Description

EqualsDetermines whether this instance and a specified object, which must also be a [[ShortcutBinding}} object, have the same value.
GetHashCodeReturns the hash code for the value of this instance.
ToStringConverts the value of the current ShortcutBinding object to its equivalent string representation.