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
NavMeshData()
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.
NavMeshData(int)
Constructs a new object representing a NavMesh for the specified agent type.
public NavMeshData(int agentTypeID)
Parameters
The agent type ID to create a NavMesh for.