ドキュメント

Unity Engine

Unity Engine

SetNavMeshArea(GameObject, int)

Set the navmesh area for the gameobject.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
注意
Deprecated. 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

GameObject to modify.

areaIndex

NavMesh area index to set.