| 369 | } |
| 370 | |
| 371 | bool 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 | |
| 390 | bool ManagedEditor::HasGameViewportFocus() const |
| 391 | { |
no test coverage detected