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

CandidateComparer Class

Extends MonoBehaviour

Methods

Compare ( a , b )
Compares two candidate objects to determine their relative priority.
The implementation should be consistent with the standard comparison contract:
  • If Compare(x,y) returns negative, then Compare(y,x) should return positive
  • If Compare(x,y) returns zero, then Compare(y,x) should return zero
  • If Compare(x,y) returns positive, then Compare(y,x) should return negative
Signature
int Oculus.Interaction.CandidateComparer< T >.Compare(object a, object b)
Parameters
a: object  The first candidate object to compare
b: object  The second candidate object to compare
Returns
int  A negative value if a should be prioritized over b, zero if they have equal priority, or a positive value if b should be prioritized over a
Compare ( a , b )
Signature
abstract int Oculus.Interaction.CandidateComparer< T >.Compare(T a, T b)
Parameters
a: T
b: T
Returns
abstract int