API reference
API reference
Select your platform
No SDKs available
No versions available

CandidateComparer Class

Extends MonoBehaviour
Type-specific descendent of ICandidateComparer, allowing typed-aware comparisons.
Comparisons between objects of T will result in the arguments being compared by Compare(T, T). Comparisons of any type other than T will evaluate the arguments as being equivalent.

Methods

Compare ( a , b )
Implementation of ICandidateComparer.Compare(object, object); for details, please refer to the related documentation provided for that property.
Signature
int Oculus.Interaction.CandidateComparer< T >.Compare(object a, object b)
Parameters
a: object
b: object
Returns
int
Compare ( a , b )
Adapter API which Compare(object, object) uses to perform typed comparisons between its arguments.
Signature
abstract int Oculus.Interaction.CandidateComparer< T >.Compare(T a, T b)
Parameters
a: T  Left-hand side of the comparison
b: T  Right-hand side of the comparison
Returns
abstract int  The result of the comparison