NavMeshBuildDebugFlags
Bitmask used for operating with debug data from the NavMesh build process.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
[Flags]public enum NavMeshBuildDebugFlags
Remarks
Used in two situations:
-
within _debug to specify which debug data to retain after the build process has completed, preserving the world position and orientation;
-
as a parameter of NavMeshEditorHelpers.DrawBuildDebug to control which of the available debug data types to display for a specified NavMesh.
Additional Resources: NavMeshBuildSettings
Fields
Value | Description |
|---|---|
| All | All debug data from the NavMesh build process is taken into consideration. |
| InputGeometry | The triangles of all the geometry that is used as a base for computing the new NavMesh. |
| None | No debug data from the NavMesh build process is taken into consideration. |
| PolygonMeshes | Meshes of convex polygons constructed within the unified contours of adjacent regions. |
| PolygonMeshesDetail | The triangulated meshes with height details that better approximate the source geometry. |
| RawContours | The contours that follow precisely the edges of each surface region. |
| Regions | The segmentation of the traversable surfaces into smaller areas necessary for producing simple polygons. |
| SimplifiedContours | Contours bounding each of the surface regions, described through fewer vertices and straighter edges compared to NavMeshBuildDebugFlags.RawContours. |
| Voxels | The voxels produced by rasterizing the source geometry into walkable and unwalkable areas. |