Documentation

Unity Engine

Download Unity

Unity Engine

SetLayerCost(int, float)

Sets the cost for traversing over geometry of the layer type.
Read time 1 minuteLast updated 7 hours ago

Definition

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

Parameters

layer

Layer index.

cost

New cost for the specified layer.

Remarks

If you enable or disable the agent then the cost will be reset to the default layer cost.