Version: 2019.3
Building a NavMesh
NavMesh Surface

NavMesh building components

NavMeshA mesh that Unity generates to approximate the walkable areas and obstacles in your environment for path finding and AI-controlled navigation. More info
See in Glossary
building componentsA functional part of a GameObject. A GameObject can contain any number of components. Unity has many built-in components, and you can create your own by writing scripts that inherit from MonoBehaviour. More info
See in Glossary
provide you with additional controls for building (also known as baking) and using NavMeshes at run time and in the Unity Editor.

The high-level NavMesh building components listed below are not supplied with the standard Unity Editor installer which you download from the Unity store. Instead, download them from the Unity Technologies GitHub and install them separately.

There are four high-level components to use with NavMesh:

  • NavMesh Surface - Use for building and enabling a NavMesh surface for one type of Agent.

  • NavMesh Modifier - Use for affecting the NavMesh generation of NavMesh area types based on the transform hierarchy.

  • NavMeshModifierVolume - Use for affecting the NavMesh generation of NavMesh area types based on volume.

  • NavMeshLink - Use for connecting the same or different NavMesh surfaces for one type of Agent.

See also documentation on Mesh-BuildingComponents-API.

For more information on Agent types, refer to documentation on creating NavMesh Agents.

For more details about NavMesh area types, see documentation on NavMesh areas.

Creating high-level NavMesh building components

To install the high-level NavMesh building components:

  1. Download and install Unity 5.6 or later.

  2. Clone or download the repository from the NavMesh Components page on the Unity Technologies GitHub by clicking on the green Clone or download button.

  3. Open the NavMesh Components Project using Unity, or alternatively copy the contents of the Assets/NavMeshComponents folder to an existing Project.

Find additional examples in the Assets/Examples folder.

Note: Make sure to back up your Project before installing high-level NavMesh building components.




  • 2017–05–26 Page published

  • New feature in 5.6

Building a NavMesh
NavMesh Surface
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961