Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Equals

Indicates whether the current PortReference is equal to another PortReference.
Read time 1 minuteLast updated 6 days ago

Definition

Equals(PortReference)

Indicates whether the current PortReference is equal to another PortReference.
public bool Equals(PortReference other)

Parameters

The other PortReference to compare with the current instance.

Returns

Type

Description

boolReturns true when both references share the same PortReference.PortID and refer to the same PortReference.Context instance. Otherwise, returns false.

Equals(Object)

Indicates whether the current PortReference is equal to another object.
public override bool Equals(object obj)

Parameters

The object to compare with the current PortReference.

Returns

Type

Description

boolReturns true when
obj
is a PortReference equal to the current instance. Otherwise, returns false.