SetLayerCost(int, float)
Sets the cost for traversing over geometry of the layer type.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public void SetLayerCost(int layer, float cost)
Parameters
Remarks
If you enable or disable the agent then the cost will be reset to the default layer cost.