Method group is Obsolete

GameObjectUtility.GetNavMeshAreaFromName

Obsolete GetNavMeshAreaFromName has been deprecated. Use NavMesh.GetAreaFromName instead.
Upgrade to GetAreaFromName

Declaration

public static int GetNavMeshAreaFromName(string name);

Parameters

name NavMesh 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

Get the navmesh area index from the area name.


Did you find this page useful? Please give it a rating: