# NavMeshBuildDebugFlags

> Bitmask used for operating with debug data from the NavMesh build process.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.AI](/engine/6000.5/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

```csharp
[Flags]
public enum NavMeshBuildDebugFlags
```

## Remarks

Used in two situations:

* within [\_debug](/engine/6000.5/script-reference/unityengine/ai/navmeshbuildsettings/debug.md) 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](/engine/6000.5/script-reference/unityeditor/ai/navmesheditorhelpers/drawbuilddebug.md) to control which of the available debug data types to display for a specified NavMesh.

Additional Resources: [NavMeshBuildSettings](/engine/6000.5/script-reference/unityengine/ai/navmeshbuildsettings.md)

## Fields

| Value                                                                                                               | Description                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [All](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/all.md)                                 | All debug data from the NavMesh build process is taken into consideration.                                                                                                                                                                   |
| [InputGeometry](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/inputgeometry.md)             | The triangles of all the geometry that is used as a base for computing the new NavMesh.                                                                                                                                                      |
| [None](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/none.md)                               | No debug data from the NavMesh build process is taken into consideration.                                                                                                                                                                    |
| [PolygonMeshes](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/polygonmeshes.md)             | Meshes of convex polygons constructed within the unified contours of adjacent regions.                                                                                                                                                       |
| [PolygonMeshesDetail](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/polygonmeshesdetail.md) | The triangulated meshes with height details that better approximate the source geometry.                                                                                                                                                     |
| [RawContours](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/rawcontours.md)                 | The contours that follow precisely the edges of each surface region.                                                                                                                                                                         |
| [Regions](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/regions.md)                         | The segmentation of the traversable surfaces into smaller areas necessary for producing simple polygons.                                                                                                                                     |
| [SimplifiedContours](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/simplifiedcontours.md)   | Contours bounding each of the surface regions, described through fewer vertices and straighter edges compared to [NavMeshBuildDebugFlags.RawContours](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/rawcontours.md). |
| [Voxels](/engine/6000.5/script-reference/unityengine/ai/navmeshbuilddebugflags/voxels.md)                           | The voxels produced by rasterizing the source geometry into walkable and unwalkable areas.                                                                                                                                                   |
