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.

GameObjectUtility.GetNavMeshLayerFromName

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

Description

Get the navmesh layer from the layer name.