1.6 KiB
1.6 KiB
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.
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. |