Method group is Obsolete

GameObjectUtility.GetNavMeshArea

Obsolete GetNavMeshArea has been deprecated. To relate a GameObject to an area type and retrieve their relation later, create a NavMeshBuildMarkup and pass it into UnityEngine.AI.NavMeshBuilder.CollectSources().

Declaration

public static int GetNavMeshArea(GameObject go);

Parameters

go The GameObject to query.

Returns

int NavMesh area index.

Description

Get the navmesh area index for the GameObject.


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