Navigation Warning ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ytachi1000

Hi I use Godot 3.5
I have this warnings on navigation nodes.

What should I do?

:bust_in_silhouette: Reply From: jgodfrey

As the warning says, instead of using the deprecated Navigation node (which will be removed in future versions of Godot), you should instead use the NavigationServer object directly (from code), along with its associated methods, including map_get_path().

So, something like this:

var path = NavigationServer.map_get_path(...)

See the docs here.