Skip to content

格式

typescript
NavMesh.SetAreaCost(areaIndex, cost)

所属类: NavMesh

描述

设置区域的成本

参数

参数名类型描述
areaIndexnumber区域索引
costnumber区域成本

返回值

类型描述
void

代码示例