How to get all Nodes within a specific number?

This is for a GridGraph. I am looking for a way to get all nodes within a set number. For example, let’s say the player is at a specific node. I want to be able to move him 5 spaces, regardless if its straights or diagonals. (Each node would represent a “space”).

I know you can use ConstantPath to get all the nodes within a specific “G Score”, but this doesn’t yield the same result.

Thanks for any help.

Hi

You can use the PathUtilities.BFS method. It does exactly this.