Path failed: Searched whole area but could not find target

Thanks for al the help! :smiley: but i find a problem, the asociation:

endNode = node;

gives me an error, ususally, endNode = endNNInfo.node; but in those cases, i don’t have the

NNInfo endNNInfo = AstarPath.active.GetNearest(endPoint, nnConstraint, endHint);

declared so i can use node as a varaible… any suggestions to solve it?