![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Classes | |
| struct | dtPoly |
| struct | dtMeshHeader |
| struct | dtMeshTile |
| struct | dtNavMeshParams |
| class | dtNavMesh |
| struct | dtNavMeshCreateParams |
| class | dtQueryFilter |
| class | dtNavMeshQuery |
| class | dtPathCorridor |
Typedefs | |
| typedef UEType_uint64 | dtPolyRef |
| typedef UEType_uint64 | dtTileRef |
Functions | |
| NAVMESH_API dtNavMesh * | dtAllocNavMesh () |
| NAVMESH_API void | dtFreeNavMesh (dtNavMesh *navmesh) |
| NAVMESH_API bool | dtCreateNavMeshData (dtNavMeshCreateParams *params, unsigned char **outData, int *outDataSize) |
| NAVMESH_API dtNavMeshQuery * | dtAllocNavMeshQuery () |
| NAVMESH_API void | dtFreeNavMeshQuery (dtNavMeshQuery *query) |
Members in this module are used to create, manipulate, and query navigation meshes.
A handle to a polygon within a navigation mesh tile.
A handle to a tile within a navigation mesh.
The following changes will invalidate a tile reference:
A tile reference is preserved/restored if the tile is added to a navigation mesh initialized with the original dtNavMeshParams and is added at the original reference location. (E.g. The lastRef parameter is used with dtNavMesh::addTile.)
Basically, if the storage structure of a tile changes, its associated tile reference changes.
| NAVMESH_API dtNavMesh * dtAllocNavMesh | ( | ) |
Allocates a navigation mesh object using the Detour allocator.
| NAVMESH_API dtNavMeshQuery * dtAllocNavMeshQuery | ( | ) |
Allocates a query object using the Detour allocator.
| NAVMESH_API bool dtCreateNavMeshData | ( | dtNavMeshCreateParams * | params, |
| unsigned char ** | outData, | ||
| int * | outDataSize | ||
| ) |
Builds navigation mesh tile data from the provided tile creation data.
| [in] | params | Tile creation data. |
| [out] | outData | The resulting tile data. |
| [out] | outDataSize | The size of the tile data array. |
The output data array is allocated using the detour allocator (dtAlloc()). The method used to free the memory will be determined by how the tile is added to the navigation mesh.
| NAVMESH_API void dtFreeNavMesh | ( | dtNavMesh * | navmesh | ) |
Frees the specified navigation mesh object using the Detour allocator.
| [in] | navmesh | A navigation mesh allocated using dtAllocNavMesh |
This function will only free the memory for tiles with the DT_TILE_FREE_DATA flag set.
| NAVMESH_API void dtFreeNavMeshQuery | ( | dtNavMeshQuery * | query | ) |
Frees the specified query object using the Detour allocator.
| [in] | query | A query object allocated using dtAllocNavMeshQuery |