How can you tell if a path requested cannot be reached? And question about stopping if blocked


When I call ABPath.Construct(), how can I tell if the path is unreachable?

And secondly, is there a way to tell the Seeker to stop if the player hits a collider? I have my player move to where the user clicks but want it to stop if it hits something. For example, if they click on the ground under a tree to walk up to the tree, I want them to stop moving once they hit the tree instead of trying to constantly reach the target.



You can’t from the path object because the path is not calculated yet.

If you want to know that before calculating the path you can use the PathUtilities.IsPathPossible method.