Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtNavMesh
Description
Adds a tile to the navigation mesh.
The add operation will fail if the data is in the wrong format, the allocated tile space is full, or there is a tile already at the specified reference.
The lastRef parameter is used to restore a tile with the same tile reference it had previously used. In this case the dtPolyRef's for the tile will be restored to the same values they were before the tile was removed.
| Name | addTile |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMesh.h |
| Include Path | #include "Detour/DetourNavMesh.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMesh.cpp |
dtStatus addTile
(
unsigned char * data,
int dataSize,
int flags,
dtTileRef lastRef,
dtTileRef * result
)
The status flags for the operation.
Parameters
| Name | Remarks |
|---|---|
| data | Data for the new tile mesh. (See: dtCreateNavMeshData) |
| dataSize | Data size of the new tile mesh. |
| flags | Tile flags. (See: dtTileFlags) |
| lastRef | The desired reference for the tile. (When reloading a tile.) [opt] [Default: 0] |
| result | The tile reference. (If the tile was succesfully added.) [opt] |
See Also
-
dtCreateNavMeshData
-
removeTile