Version: 2018.2

GameObjectUtility.GetNavMeshAreaFromName

Switch to Manual
public static int GetNavMeshAreaFromName (string name);

Parameters

nameNavMesh area name to query.

Returns

int The NavMesh area index. If there is no NavMesh area with the requested name, the return value is -1.

Description

Возвращает navmesh слой по имени слоя.