Change Max Distance of Point Graph at Runtime and Recalculate Graph

Hello everyone,
I want to Change Max Distance of the Point Graph at Runtime and Recalculate Graph.

I want to use this to restrict the user from reaching farthest areas (Max Distance 6). Later player can upgrade to reach farthest areas (Max Distance 8).

Thanks

Hi

You can get the point graph using AstarPath.active.data.pointGraph. Make any changes you wish and then run AstarPath.active.Scan()