NavMeshData
Constructs a new object for representing a NavMesh for the default agent type.
阅读时间1 分钟最后更新于 1 个月前
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.