Find paths to all goals instead of just the closest



  • Is there any way to use the pathfinder to find paths to all goals instead of just the nearest one?

    PathFinder.search only seems to return the first goal it finds, which means I have to search for each item separately, which is quite expensive.

    I could implement my own A* search for this, but I'd far rather use the builtin pathfinder, especially since it's implemented in native code.

    Is there an option I have overlooked?

    Thanks.