Version: 2022.2
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

NavMeshQuery.EndFindPath

マニュアルに切り替える
public Experimental.AI.PathQueryStatus EndFindPath (out int pathSize);

パラメーター

pathSize A reference to an int which will be set to the number of NavMesh nodes in the found path.

戻り値

PathQueryStatus Success when the number of nodes in the path was retrieved correctly.
PartialPath when a path was found but it falls short of the desired end location.
Failure when the path size can not be evaluated because the preceding call to UpdateFindPath was not successful.

説明

Obtains the number of nodes in the path that has been computed during a successful NavMeshQuery.UpdateFindPath operation.

This method prepares the path data so that NavMeshQuery.GetPathResult can be used afterward to retrieve the actual array of PolygonId values that make up the path.

Important: This method should only be called once at the end of the pathfinding operation. Calling it multiple times may ruin the stored path.

See Also: PathQueryStatus.