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

Method DrawNavMesh

Source/Engine/Navigation/Navigation.cpp:389–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387#if COMPILE_WITH_DEBUG_DRAW
388
389void Navigation::DrawNavMesh()
390{
391 for (auto navMesh : NavMeshes)
392 {
393#if USE_EDITOR
394 // Skip drawing if any of the navmeshes on scene has disabled ShowDebugDraw option
395 bool skip = false;
396 for (auto scene : Level::Scenes)
397 {
398 for (auto e : scene->Navigation.Meshes)
399 {
400 if (e->Properties == navMesh->Properties)
401 {
402 if (!e->ShowDebugDraw)
403 {
404 skip = true;
405 }
406 break;
407 }
408 }
409 }
410 if (skip)
411 continue;
412#endif
413
414 navMesh->DebugDraw();
415 }
416}
417
418#endif

Callers

nothing calls this directly

Calls 1

DebugDrawMethod · 0.45

Tested by

no test coverage detected