SetLayerCost(int, float)
Sets the cost for traversing over geometry of the layer type on all agents.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public static void SetLayerCost(int layer, float cost)
Parameters
Remarks
This will replace any custom layer costs on all agents.