Version: 2020.2
NavMesh Surface
NavMesh Modifier Volume

NavMesh Modifier

NavMesh Modifiers adjust how a specific GameObject behaves during 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
baking at runtime. NavMesh Modifiers are not in the Unity standard install; see documentation on high-level NavMesh building components for information on how to access them.

To use the NavMesh Modifier component, navigate to GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
> AI > NavMesh Modifier.

In the image below, the platform in the bottom right has a modifier attached to it that sets its Area Type to Lava.

A NavMesh Modifier component open in the Inspector window
A NavMesh Modifier component open in the Inspector window

The NavMesh Modifier affects GameObjects hierarchically, meaning the GameObject that the component is attached to as well as all its children are affected. Additionally, if another NavMesh Modifier is found further down the transform hierarchy, the new NavMesh Modifier overrides the one further up the hierarchy.

The NavMesh Modifier also affects the NavMesh generation process, meaning the NavMesh has to be updated to reflect any changes to NavMesh Modifiers.

Property: Function:
Ignore From Build Check this tickbox to exclude the GameObject and all if its children from the build process.
Override Area Type Check this tickbox to change the area type for the GameObject containing the Modifier and all of its children.
Area Type Select the new area type to apply from the drop-down menu.
Affected Agents A selection of Agents the Modifier affects. For example, you may choose to exclude certain obstacles from specific Agents.




  • 2017–05–26 Page published

  • New feature in 5.6

NavMesh Surface
NavMesh Modifier Volume