Documentation

Unity Engine

Download Unity

Unity Engine

Equals

Determines whether the specified StringHash is equal to the current StringHash.
Read time 1 minuteLast updated 4 hours ago

Definition

Equals(StringHash)

Determines whether the specified StringHash is equal to the current StringHash.
public bool Equals(StringHash other)

Parameters

The hash to compare with this one.

Returns

Type

Description

bool
true
if the two values are equal. Otherwise,
false
.

Equals(Object)

Determines whether an object is a StringHash that equals the current StringHash.
[ExcludeFromBurstCompatTesting("Takes managed object")]public override bool Equals(object other)

Parameters

other

The object to compare with this hash.

Returns

Type

Description

bool
true
if
other
is a StringHash with the same StringHash.Id. Otherwise,
false
, including when
other
is another type or null.