Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour > dtNavMesh
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMesh.h |
Include | #include "Detour/DetourNavMesh.h" |
Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMesh.cpp |
dtStatus addTile
&40;
unsigned char &42; data,
int dataSize,
int flags,
dtTileRef lastRef,
dtTileRef &42; result
&41;
Remarks
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. The status flags for the operation.
Parameters
Name | Description |
---|---|
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