Identifying grid nodes next to unwalkable nodes

I’m using a GridGraph and need to identify walkable tiles adjacent to unwalkable tiles outside of runtime (both left, right, up, down and diagonally). Is CheckConnection() the right function for this? I can think of a couple approaches I could write myself, but given all the existing A* asset code for handling connections, I suspect there’s a much better simple solution using one of these functions.



If you have an 8-connected grid graph (the default) then you can use node.HasConnectionsToAllEightNeighbours.

See Documentation