# GetLeakDetectionMode()

> Gets the mode of memory leak detection.

## Definition

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

```csharp
public static NativeLeakDetectionMode GetLeakDetectionMode()
```

### Returns

| Type                                                                                                    | Description                 |
| ------------------------------------------------------------------------------------------------------- | --------------------------- |
| [NativeLeakDetectionMode](/engine/6000.3/script-reference/unity/collections/nativeleakdetectionmode.md) | The mode of leak detection: |
