NavMeshAgent.GetLayerCost

function GetLayerCost (layer : int) : float

Parameters

NameDescription
layer Layer index.

Returns

float - Current cost of specified layer.

Description

Gets the cost for traversing over geometry of the layer type.