Max distance for ABPath

Is there a way to cap the max distance of the calculated path? Imagine turn-based combat where the player can only move 10 units. Is there a way to specify a max distance? I’m using a Grid Graph, though I suppose the question could apply to any graph.

    var path = ABPath.Construct(start, hit.point);
    AstarPath.StartPath(path);

Hi

Normally you would do this by calculating the whole path and then cut the path after a given distance.
This is not something included out of the box in the package though.