Navigation and Pathfinding in Unity is handled by the AI Navigation package as of Unity 2022.2.
If you have projects that were created with the Navigation feature in previous versions of Unity, the AI Navigation package is automatically installed and added to your project. You can then do one of the following:
If your project uses the NavMesh Surface, NavMesh Modifier, NavMesh Modifier Volume or NavMesh Link components defined by scripts downloaded from Unity’s NavMeshComponents GitHub repository, then remove those scripts and any associated files before you add the AI Navigation package to your project. If you don’t remove these scripts, you might get conflicts and errors related to these components in the Console. The new components mirror the same behavior as the old components do in your project except when using the following components:
If you want to use the new package you need to convert your project(s). As part of the conversion process, the NavMesh Updater makes the following changes:
To convert your project do the following:
If the NavMeshes in different scenes are baked with different agent settings then you need to create new agent types to match those settings.
To create the agent types do the following:
When you have created the new agent types you then need to assign them as follows:
To find the settings that were used for each existing NavMesh, select the NavMesh .asset
file in the Project window. The NavMesh settings will be displayed in the Inspector.