Creating selectable tiles at runtime

Basically I want a way to store all of the graphs points in an array, then go through each vector 3 and apply a square prefab to each one… Is there a easy way to do this? Still trying to wrap my head around this plugin… it seems super great so far!

after digging around a little… I found this method

not really sure if it would work… Could I grab the position of the current node to make a empty gameobject?

Hi

Here is approximately what you would have to do (works for any graph type)

 var graph = AstarPath.active.astarData.graphs[0];
 graph.GetNodes(node => {
      GameObject.Instantiate((Vector3)node.position, Quaternion.identity);
      return true;
 });

I ended up figuring out how to do it. Thank you for your help