# SetLeakDetectionMode(NativeLeakDetectionMode)

> Set the leak detection mode.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.0/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void SetLeakDetectionMode(NativeLeakDetectionMode value)
```

### Parameters

**** (\[NativeLeakDetectionMode]\(/engine/6000.0/script-reference/unity/collections/nativeleakdetectionmode)): The mode of leak detection. 1 = disabled, 2 = enabled, or 3 = enabled with callstacks.
