Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NavMeshData

Constructs a new object for representing a NavMesh for the default agent type.
Read time 1 minuteLast updated 12 days ago

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.