Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Obsolete
Use GetAreaCost instead.

NavMesh.GetLayerCost

Switch to Manual
public static function GetLayerCost(layer: int): float;

Parameters

Description

Gets the cost for traversing over geometry of the layer type on all agents.