Version: 2023.2

NavMeshPath

class in UnityEngine.AI

切换到手册

描述

由导航系统计算的路径。

路径以路标列表的形式表示,存储在 corners 数组中。这些路标不是由用户脚本直接设置的,但 NavMesh.CalculatePath 函数和 NavMeshAgent.path 属性会返回分配有正确路标的 NavMeshPath。

变量

corners路径的角点。(只读)
status路径状态。(只读)

构造函数

NavMeshPathNavMeshPath 构造函数。

公共函数

ClearCorners将所有角点从路径中擦除。
GetCornersNonAlloc计算路径的角。

Did you find this page useful? Please give it a rating: