# PathQueryStatus

> Bit flags representing the resulting state of NavMeshQuery operations.

## Definition

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

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

```csharp
[Flags]
public enum PathQueryStatus
```

## Remarks

The main values are `Success`, `Failure` and `InProgress`. A status will usually have only one of these main flags set. The secondary flags (details) are set when specific issues have been encountered during the operation. `StatusDetailMask` is a bit mask that can be used to filter out these secondary flags.

**Note:** Issues highlighted by the presence of certain detail flags in certain situations might refer to internal structures outside the control of users, thus they will not always be able to mitigate them by taking the necessary actions in their code. Ways for handling these situations will be made available in the future.

## Fields

| Value                                                                                                               | Description                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| [BufferTooSmall](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/buffertoosmall.md)     | The node buffer of the query was too small to store all results.                                             |
| [Failure](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/failure.md)                   | The operation has failed.                                                                                    |
| [InProgress](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/inprogress.md)             | The operation is in progress.                                                                                |
| [InvalidParam](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/invalidparam.md)         | A parameter did not contain valid information, useful for carring out the NavMesh query.                     |
| [OutOfMemory](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/outofmemory.md)           | Operation ran out of memory.                                                                                 |
| [OutOfNodes](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/outofnodes.md)             | Query ran out of node stack space during a search.                                                           |
| [PartialResult](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/partialresult.md)       | Query did not reach the end location, returning best guess.                                                  |
| [StatusDetailMask](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/statusdetailmask.md) | Bitmask that has 0 set for the `Success`, `Failure` and `InProgress` bits and 1 set for all the other flags. |
| [Success](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/success.md)                   | The operation was successful.                                                                                |
| [WrongMagic](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/wrongmagic.md)             | Data in the NavMesh cannot be recognized and used.                                                           |
| [WrongVersion](/engine/6000.7/script-reference/unityengine/experimental/ai/pathquerystatus/wrongversion.md)         | Data in the NavMesh world has a wrong version.                                                               |
