Method UpdateNavMesh
UpdateNavMesh(NavMeshData)
Rebuilds parts of an existing NavMesh in the regions of the scene where the objects have changed.
Declaration
public AsyncOperation UpdateNavMesh(NavMeshData data)
Parameters
Type | Name | Description |
---|---|---|
NavMeshData | data | The NavMesh to update according to the changes in the scene. |
Returns
Type | Description |
---|---|
AsyncOperation | A reference to the asynchronous coroutine that builds the NavMesh. |
Remarks
This operation is executed asynchronously.