How to get the next node in the Point Graph?

Hello,
How to get the next node in the Point Graph?
Thanks

Hi

Could you elaborate?

Yes,
When I click on a Node, AI move toward the selected node. Lets say AI is moving from Node A to Node D. First it will go to Node B, then C and then D. So, when I click Node D, I want to get the Node B object.

Hi

I think you’ll be interested in this tutorials: Writing a movement script - A* Pathfinding Project and Searching for paths - A* Pathfinding Project

1 Like

I read both pages but didn’t understand which part is relevant to my question. Please help me, I am new in coding. Thanks.