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 GetNavMeshLayerFromName(layerName: string): int;
public static int GetNavMeshLayerFromName(string layerName);

Parameters

Description

Returns the layer index for a named layer.

If the named layer does not exist returns -1.