Hi, I just recently downloaded the demo version and so far I’m very impressed and love it. Right now I’m trying to generate points around a target location with GetPointsAroundPoint using a grid graph. Since I’m only using one graph the documentation says to use AstarPath.active.graphs[0] as IRaycastableGraph, but when I try that it returns null and GetPointsAroundPoint throws its exception due to having a null IRaycastableGraph.
I’m pretty sure my graph is scanned? If I just have it print(AstarPath.active.graphs[0].name); I get the name of my graph in the scene, but when I do
var graph = AstarPath.active.graph[0] as IRaycastableGraph;
print(graph);
the output is null.
I’m using a grid graph, not a point graph.
I can paste the exact code in later if that would help. I’m at work right now and it’s a project I work on in the mornings before work so I don’t have the code in front of me at this moment.
Hey I’m having this exact problem, but the links you are suggesting to point to anything. May I ask what functions you are referring to? I need to get nodes around a central point or node, but BFS only returns walkable nodes (I think), and I need unwalkable nodes as well.