# OutOfMemory

> Operation ran out of memory.

## Definition

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

> **Warning:**
>
> **Deprecated.** The experimental PathQueryStatus enum has been deprecated. Use NavQueryStatus instead.

```csharp
OutOfMemory = 4
```

### Remarks

**Known issue, will be fixed:** This flag is not currently reported when memory fails to be allocated because the [NavMeshQuery](/engine/6000.5/script-reference/unityengine/experimental/ai/navmeshquery.md) is created with a `pathNodePoolSize` value too large. The NavMeshQuery will then be silently defective and might produce a crash.
