Skip to main content

Order By Distance

Sorts candidates by their distance from the filter's source without removing any. Available for Vector2, Vector2Int, Vector3 and Vector3Int positions.

FieldDescription
Position Stat KeyThe position read on the source and each candidate.
DescendingOff: nearest first. On: farthest first.

Actors without a usable position sort last. Equal distances preserve incoming order. In a Chain, follow this with Take to choose the nearest or farthest N Actors.