Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

public static function SetLayerCost(layer: int, cost: float): void;
public static void SetLayerCost(int layer, float cost);

Parameters

Description

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

This will replace any custom layer costs on all agents.