GetNearest() what is a "hint"?

https://arongranberg.com/astar/docs/astarpath.html#GetNearest3

Unsure how to use this and couldn’t find anything else about it in the docs.

Hi

You might be interested in this page: Using nodes - A* Pathfinding Project

I’m sorry, I may be dense but I didn’t see anything there explaining what a hint is or how to use it. It’s all good though because I seem to be able to do everything I need to do without it for the time being! :+1:

Hi

The hint parameter is deprecated, and you can ignore it. I think it has been marked as deprecated properly in the documentation in the beta version, but it looks like there are a few places it’s not properly marked as deprecated in the current version. Just use the overloads that do not take a hint parameter, or pass null.

1 Like