기술 자료

Unity Engine

Unity Engine

NavMeshData

Constructs a new object for representing a NavMesh for the default agent type.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Constructor
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
Constructs a new object for representing a NavMesh for the default agent type.
public NavMeshData()

Remarks

At construction this NavMesh is empty, i.e. there are no polygons. You can use this class to create, build and add a NavMesh at runtime.
Constructs a new object representing a NavMesh for the specified agent type.
public NavMeshData(int agentTypeID)

Parameters

agentTypeID

The agent type ID to create a NavMesh for.