docs.unity3d.com
    Show / Hide Table of Contents

    NavMeshModifierVolume

    NavMesh Modifier Volume marks a defined area as a certain type (for example, Lava or Door). Whereas NavMesh Modifier marks certain GameObjects with an area type. NavMesh Modifier Volume allows you to change an area type locally based on a specific volume.

    To use the NavMesh Modifier Volume component, navigate to GameObject > AI > NavMesh Modifier Volume.

    NavMesh Modifier Volume is useful for marking certain areas of walkable surfaces that might not be represented as separate geometry, for example danger areas. You can also use It to make certain areas non-walkable.

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

    NavMeshModifierVolume example

    Parameters

    Property Function
    Size Dimensions of the NavMesh Modifier Volume, defined by XYZ measurements.
    Center The center of the NavMesh Modifier Volume relative to the GameObject center, defined by XYZ measurements.
    Area Type Describes the area type to which the NavMesh Modifier Volume applies.
    - Walkable (this is the default option)
    - Not Walkable
    - Jump
    Affected Agents A selection of agent types that the NavMesh Modifier Volume affects. For example, you may choose to make the selected NavMesh Modifier Volume a danger zone for specific Agent types only.
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Thursday, October 19, 2023