UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
dtMeshTile Struct Reference

#include <DetourNavMesh.h>

Public Attributes

unsigned int salt
 Counter describing modifications to the tile.
 
unsigned int linksFreeList
 Index to the next free link.
 
dtMeshHeaderheader
 The tile header.
 
dtPolypolys
 The tile polygons. [Size: dtMeshHeader::polyCount].
 
dtRealverts
 The tile vertices. [Size: dtMeshHeader::vertCount (3 real per vertex)].
 
dtLinklinks
 The tile links. [Size: dtMeshHeader::maxLinkCount].
 
dtPolyDetaildetailMeshes
 The tile's detail sub-meshes. [Size: dtMeshHeader::detailMeshCount].
 
dtRealdetailVerts
 The detail mesh's unique vertices. [(x, y, z) * dtMeshHeader::detailVertCount].
 
unsigned chardetailTris
 The detail mesh's triangles. [(vertA, vertB, vertC) * dtMeshHeader::detailTriCount].
 
dtBVNodebvTree
 
dtOffMeshConnectionoffMeshCons
 The tile off-mesh connections. [Size: dtMeshHeader::offMeshConCount].
 
unsigned chardata
 The tile data. (Not directly accessed under normal situations.)
 
int dataSize
 Size of the tile data.
 
int flags
 Tile flags. (See: dtTileFlags)
 
dtMeshTilenext
 The next free tile, or the next tile in the spatial grid.
 
dtChunkArray< dtLink, DT_ALLOC_PERM_TILE_DYNLINK_OFFMESHdynamicLinksO
 Dynamic links array (indices starting from dtMeshHeader::maxLinkCount)
 
unsigned int dynamicFreeListO
 Index of the next free dynamic link.
 

Detailed Description

Defines a navigation mesh tile.

Tiles generally only exist within the context of a dtNavMesh object.

Some tile content is optional. For example, a tile may not contain any off-mesh connections. In this case the associated pointer will be null.

If a detail mesh exists it will share vertices with the base polygon mesh.
Only the vertices unique to the detail mesh will be stored in detailVerts.

Warning
Tiles returned by a dtNavMesh object are not guarenteed to be populated. For example: The tile at a location might not have been loaded yet, or may have been removed. In this case, pointers will be null. So if in doubt, check the polygon count in the tile's header to determine if a tile has polygons defined.

Member Data Documentation

◆ bvTree

dtBVNode* dtMeshTile::bvTree

The tile bounding volume nodes. [Size: dtMeshHeader::bvNodeCount] (Will be null if bounding volumes are disabled.)

◆ data

unsigned char* dtMeshTile::data

The tile data. (Not directly accessed under normal situations.)

◆ dataSize

int dtMeshTile::dataSize

Size of the tile data.

◆ detailMeshes

dtPolyDetail* dtMeshTile::detailMeshes

The tile's detail sub-meshes. [Size: dtMeshHeader::detailMeshCount].

◆ detailTris

unsigned char* dtMeshTile::detailTris

The detail mesh's triangles. [(vertA, vertB, vertC) * dtMeshHeader::detailTriCount].

◆ detailVerts

dtReal* dtMeshTile::detailVerts

The detail mesh's unique vertices. [(x, y, z) * dtMeshHeader::detailVertCount].

◆ dynamicFreeListO

unsigned int dtMeshTile::dynamicFreeListO

Index of the next free dynamic link.

◆ dynamicLinksO

Dynamic links array (indices starting from dtMeshHeader::maxLinkCount)

◆ flags

int dtMeshTile::flags

Tile flags. (See: dtTileFlags)

◆ header

dtMeshHeader* dtMeshTile::header

The tile header.

◆ links

dtLink* dtMeshTile::links

The tile links. [Size: dtMeshHeader::maxLinkCount].

◆ linksFreeList

unsigned int dtMeshTile::linksFreeList

Index to the next free link.

◆ next

dtMeshTile* dtMeshTile::next

The next free tile, or the next tile in the spatial grid.

◆ offMeshCons

dtOffMeshConnection* dtMeshTile::offMeshCons

The tile off-mesh connections. [Size: dtMeshHeader::offMeshConCount].

◆ polys

dtPoly* dtMeshTile::polys

The tile polygons. [Size: dtMeshHeader::polyCount].

◆ salt

unsigned int dtMeshTile::salt

Counter describing modifications to the tile.

◆ verts

dtReal* dtMeshTile::verts

The tile vertices. [Size: dtMeshHeader::vertCount (3 real per vertex)].


The documentation for this struct was generated from the following file: