Documentation

Unity Engine

Download Unity

Unity Engine

SetLayerCost(int, float)

Sets the cost for traversing over geometry of the layer type on all agents.
Read time 1 minuteLast updated 10 hours ago

Definition

Warning
Deprecated. Use SetAreaCost instead.
public static void SetLayerCost(int layer, float cost)

Parameters

layer


cost

Remarks

This will replace any custom layer costs on all agents.