Skip to content

格式

typescript
NavMeshAgent.GetAreaCost(areaIndex)

所属类: NavMeshAgent

描述

返回指定区域的成本

参数

参数名类型描述
areaIndexint区域索引

返回值

类型描述
float输入区域的成本

代码示例