dtNavMesh::addTile

Adds a tile to the navigation mesh.

Windows
MacOS
Linux

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

Syntax

dtStatus addTile
(
    unsigned char * data,
    int dataSize,
    int flags,
    dtTileRef lastRef,
    dtTileRef * result
)

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.

Returns

The status flags for the operation.

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss