MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetTileSize

Method SetTileSize

Source/Engine/Navigation/NavMeshRuntime.cpp:307–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void NavMeshRuntime::SetTileSize(float tileSize)
308{
309 ScopeLock lock(Locker);
310
311 // Skip if the same or invalid
312 if (_tileSize == tileSize || tileSize < 1)
313 return;
314
315 // Dispose the existing mesh (its invalid)
316 if (_navMesh)
317 {
318 Dispose();
319 }
320
321 _tileSize = tileSize;
322}
323
324void NavMeshRuntime::EnsureCapacity(int32 tilesToAddCount)
325{

Callers 1

BuildDirtyBoundsFunction · 0.80

Calls 1

DisposeFunction · 0.85

Tested by

no test coverage detected