Skip to content

格式

typescript
NavMeshAgent.SetAreaCost(areaIndex, areaCost)

所属类: NavMeshAgent

描述

设置区域的成本

参数

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

返回值

类型描述
void

代码示例