文档

Unity Engine

Unity Engine

GetAreaCost(int)

Returns the area cost multiplier for the given area type for this filter.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public float GetAreaCost(int areaIndex)

Parameters

areaIndex

Index to retrieve the cost for.

Returns

Type

Description

floatThe cost multiplier for the supplied area index.

Remarks

The default value is 1.