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

Vector2SortCriterion Class

Extends SortCriterion
Modifiers: final
Represents a sorting criterion based on a Vector2 attribute.

Signature

class Vector2SortCriterion(val attrId: Int) : SortCriterion

Constructors

Vector2SortCriterion ( attrId )
Signature
constructor(attrId: Int)
Parameters
attrId: Int
  The ID of the attribute to sort by.

Properties

attrId : Int
[Get]
Signature
val attrId: Int
propCode : Int
[Get][Set]
Signature
var propCode: Int
sortOption : Int
[Get][Set]
Signature
var sortOption: Int

Functions

asc ()
function to set the sorting order to ascending
Signature
fun asc(): SortCriterion
byX ()
Specifies that the sorting should be based on the X property of the Vector2 attribute.
Signature
fun byX(): Vector2SortCriterion
Returns
  The current instance of Vector2SortCriterion for method chaining.
byY ()
Specifies that the sorting should be based on the Y property of the Vector2 attribute.
Signature
fun byY(): Vector2SortCriterion
Returns
  The current instance of Vector2SortCriterion for method chaining.
desc ()
function to set the sorting order to descending
Signature
fun desc(): SortCriterion