Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CompareTo

Check if two SearchItems have the same ID.
Read time 1 minuteLast updated 11 days ago

Definition

CompareTo(SearchItem)

Check if two SearchItems have the same ID.
public int CompareTo(SearchItem other)

Parameters

Another SearchItem to compare.

Returns

Type

Description

intReturns 0 if SearchItems have the same ID.

CompareTo(Object)

Check if two SearchItems have the same ID.
public int CompareTo(object other)

Parameters

other

Another SearchItem to compare.

Returns

Type

Description

intReturns 0 if SearchItems have the same ID.