# NativeLeakDetectionMode

> Sets which native leak memory leak detection mode to use.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.Collections](/engine/6000.5/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum NativeLeakDetectionMode
```

## Fields

| Value                                                                                                                       | Description                                                                       |
| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [Disabled](/engine/6000.5/script-reference/unity/collections/nativeleakdetectionmode/disabled.md)                           | Disable native memory leak detection.                                             |
| [Enabled](/engine/6000.5/script-reference/unity/collections/nativeleakdetectionmode/enabled.md)                             | Enable native memory leak detection without stack traces.                         |
| [EnabledWithStackTrace](/engine/6000.5/script-reference/unity/collections/nativeleakdetectionmode/enabledwithstacktrace.md) | Enable native memory leak detection with full stack trace extraction and logging. |
