Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#
Method group is Obsolete
Experimental: this API is experimental and might be changed or removed in the future.

NavMeshQuery

struct in UnityEngine.Experimental.AI

/

Implemented in:UnityEngine.AIModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete The experimental NavMeshQuery struct has been deprecated without replacement.

Description

Object used for doing navigation operations in a NavMeshWorld.

NavMeshQuery operations can be executed inside jobs (IJob, IJobParallelFor), as opposed to the operations in the NavMesh-related structures.

To obtain a path between two locations on the NavMesh, you must create a NavMeshQuery with a pathNodePoolSize value in the range from 1 to 65,535. After creating a NavMeshQuery, you must call the following methods in this order: BeginFindPath, UpdateFindPath (can be repeated), EndFindPath, GetPathResult. These methods store state data within the NavMeshQuery. Other methods can be called in any order since they do not change state data.

All methods throw exceptions if any of their parameters are not valid when executed in the Editor.

Note: The intended feature set for NavMeshQuery is not yet fully complete.