Unity Engine documentationScript ReferenceUnityEditorGameObjectUtilitySetNavMeshArea(GameObject, int)Set the navmesh area for the gameobject.Read time 1 minuteLast updated 12 days agoDefinition Type: Method Namespace: UnityEditor Assembly: UnityEditor.CoreModule WarningDeprecated. SetNavMeshArea has been deprecated. To relate a GameObject to an area type, create a NavMeshBuildMarkup and pass it into UnityEngine.AI.NavMeshBuilder.CollectSources(). public static void SetNavMeshArea(GameObject go, int areaIndex) Parameters goGameObjectGameObject to modify.areaIndexintNavMesh area index to set.