Function AstarData.GetNodes
        
                GetNodes
        
                (System.Action<GraphNode> callback)
    
            
            Calls the callback with every node in all graphs.
                Public
            
        void GetNodes (
System.Action<GraphNode>  |     callback  |         
Calls the callback with every node in all graphs.
This is the easiest way to iterate through every existing node.
AstarPath.active.data.GetNodes(node => { 
    Debug.Log("I found a node at position " + (Vector3)node.position);
});
See
Pathfinding.NavGraph.GetNodes for getting the nodes of a single graph instead of all.