In my game, I would like to highlight all the walkable tiles on the map when the player clicks on a unit so he can see where that unit is allowed to move.
So after scanning the grid graph, is there a way to get back a list of all walkable tiles of the grid?
Yes. You can use
AstarPath.active.data.gridGraph.nodes
and then only show the nodes for which node.Walkable
is true.
Thank you. That worked.