SetAreaCost(int, float)
Sets the cost for traversing over areas of the area type.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public void SetAreaCost(int areaIndex, float areaCost)
Parameters
Remarks
If you enable or disable the agent then the cost will be reset to the default layer cost.