PathUtilities.BFS Returning empty list

Hi, I am trying to use PathUtilities.BFS, but I keep getting empty list

This is my code:
GraphNode node = AstarPath.active.GetNearest(this.transform.position).node;
List<GraphNode> reachableNodes = PathUtilities.BFS(node, 10);

I am using version 4.2.17

I found the solution. I have to pass in the nearest walkable node

1 Like