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

Method CanAutoBuildNavMesh

Source/Editor/Managed/ManagedEditor.cpp:371–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371bool ManagedEditor::CanAutoBuildNavMesh()
372{
373 if (!ManagedEditorOptions.AutoRebuildNavMesh)
374 return false;
375
376 // Skip calls from non-managed thread (eg. physics worker)
377 if (!MCore::Thread::IsAttached())
378 return false;
379
380 if (!HasManagedInstance())
381 return false;
382 if (Internal_CanAutoBuildNavMesh == nullptr)
383 {
384 Internal_CanAutoBuildNavMesh = GetClass()->GetMethod("Internal_CanAutoBuildNavMesh");
385 ASSERT(Internal_CanAutoBuildNavMesh);
386 }
387 return MUtils::Unbox<bool>(Internal_CanAutoBuildNavMesh->Invoke(GetManagedInstance(), nullptr, nullptr));
388}
389
390bool ManagedEditor::HasGameViewportFocus() const
391{

Callers 4

ApplyMethod · 0.80
OnBoundsChangedMethod · 0.80
OnBoundsChangedMethod · 0.80
OnActiveInTreeChangedMethod · 0.80

Calls 5

HasManagedInstanceFunction · 0.50
GetClassFunction · 0.50
GetManagedInstanceFunction · 0.50
GetMethodMethod · 0.45
InvokeMethod · 0.45

Tested by

no test coverage detected