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

NavMeshQuery.UpdateFindPath

マニュアルに切り替える
public Experimental.AI.PathQueryStatus UpdateFindPath (int iterations, out int iterationsPerformed);

パラメーター

iterations Maximum number of nodes to be traversed by the search algorithm during this call.
iterationsPerformed Outputs the actual number of nodes that have been traversed during this call.

戻り値

PathQueryStatus InProgress if the search needs to continue further by calling UpdateFindPath again.
Success if the search is completed and a path has been found or not.
Failure if the search for the desired position could not be completed because the NavMesh has changed significantly since the search was initiated.
Additionally the returned value can contain the OutOfNodes flag when the pathNodePoolSize parameter for the NavMeshQuery initialization was not large enough to accommodate the search space.

説明

Continues a path search that is in progress.

The operation needs to have been initialized previously with NavMeshQuery.BeginFindPath and it will run until the entire route is found or the specified number of iterations have been executed.

As long as the previous call returned a state of InProgress this method can be called repeatedly, across different frames, until the operation is successful. Use NavMeshQuery.EndFindPath afterwards to prepare the path data for retrieval, along with the number of contained nodes.

See Also: PathQueryStatus.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961