Navigation
API > API/Runtime > API/Runtime/Navmesh
Warnings * This function assumes that the header is in the correct endianess already. Call dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianess to start with. Call dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from native to foreign endianess.
Description
Swaps endianess of the tile data.
This function assumes that the header is in the correct endianess already. Call dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianess to start with. Call dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from native to foreign endianess.
| Name | dtNavMeshDataSwapEndian |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshBuilder.h |
| Include Path | #include "Detour/DetourNavMeshBuilder.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshBuilder.cpp |
bool dtNavMeshDataSwapEndian
(
unsigned char * data,
const int dataSize
)
Parameters
| Name | Remarks |
|---|---|
| data | The tile data array. |
| dataSize | The size of the data array. |