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.
The NavMesh Modifier affects GameObjects hierarchically, meaning the GameObject that the componentA 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 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.
|Ignore From Build||Check this tickbox to exclude the GameObject and all if its children from the buildThe process of compiling your project into a format that is ready to run on a specific platform or platforms. More info
See in Glossary 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 with limited editorial review
New feature in 5.6
Did you find this page useful? Please give it a rating: