Support Forum

Trying to change the node color

Right now the nodes are all white, what I want to do is that change the color of each node in the path to red when my object moves. However, now I do not know where to find the nodes of the path and change their color. Any help will be appreciated.


If you are calculating the path yourself you can easily get the nodes by accessing the path field on the Path object. It’s just a List<GraphNode>. See