Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetNavMeshLayer(GameObject, int)

Set the navmesh layer for the GameObject.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
Warning
Deprecated. SetNavMeshLayer 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 SetNavMeshLayer(GameObject go, int areaIndex)

Parameters

The GameObject on which to set the navmesh layer.

areaIndex

The layer number you want to set.