Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

NavMesh.GetNavMeshLayerFromName

static function GetNavMeshLayerFromName(layerName: string): int;
static int GetNavMeshLayerFromName(string layerName);
static def GetNavMeshLayerFromName(layerName as string) as int

Description

Returns the layer index for a named layer.

If the named layer does not exist returns -1.