Version: 2021.1
NavMesh Surface
NavMesh Modifier Volume

NavMesh Modifier

NavMesh Modifiers adjust how a specific GameObject behaves during NavMesh 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 GameObject > 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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961