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

Method CanAutoBuildCSG

Source/Editor/Managed/ManagedEditor.cpp:352–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352bool ManagedEditor::CanAutoBuildCSG()
353{
354 if (!ManagedEditorOptions.AutoRebuildCSG)
355 return false;
356
357 // Skip calls from non-managed thread (eg. physics worker)
358 if (!MCore::Thread::IsAttached())
359 return false;
360
361 if (!HasManagedInstance())
362 return false;
363 if (Internal_CanAutoBuildCSG == nullptr)
364 {
365 Internal_CanAutoBuildCSG = GetClass()->GetMethod("Internal_CanAutoBuildCSG");
366 ASSERT(Internal_CanAutoBuildCSG);
367 }
368 return MUtils::Unbox<bool>(Internal_CanAutoBuildCSG->Invoke(GetManagedInstance(), nullptr, nullptr));
369}
370
371bool ManagedEditor::CanAutoBuildNavMesh()
372{

Callers 1

OnBrushModifiedFunction · 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