Hi
var info = AstarPath.active.GetNearest(myPosition, NNConstraint.Default); var position = info.clampedPosition;