Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Equals

Determines whether this instance and another specified ShortcutBinding instance have the same value.
Read time 1 minuteLast updated 10 days ago

Definition

Equals(ShortcutBinding)

Determines whether this instance and another specified ShortcutBinding instance have the same value.
public bool Equals(ShortcutBinding other)

Parameters

The ShortcutBinding to compare to this instance.

Returns

Type

Description

bool
true
if the value of the
other
parameter is the same as the value of this instance; otherwise,
false
.

Equals(Object)

Determines whether this instance and a specified object, which must also be a [[ShortcutBinding}} object, have the same value.
public override bool Equals(object obj)

Parameters

The ShortcutBinding to compare to this instance.

Returns

Type

Description

bool
true
if
obj
is a ShortcutBinding and its value is the same as this instance; otherwise,
false
. If
obj
is
null
, the method returns
false
.