---
title: OutOfMemory
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/ai/pathquerystatus/outofmemory
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/ai/pathquerystatus/outofmemory.md
last_updated: 2026-10-07
generated_at: 2026-11-11T11:10:05.674Z
locale: en-us
---

# OutOfMemory

> Operation ran out of memory.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Experimental.AI](/engine/7000.0/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/7000.0/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.
