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

Method FocusGameViewport

Source/Engine/Engine/Engine.cpp:479–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479void Engine::FocusGameViewport()
480{
481#if USE_EDITOR
482 Editor::Managed->FocusGameViewport();
483#else
484 if (MainWindow)
485 {
486 MainWindow->BringToFront();
487 MainWindow->Focus();
488 }
489#endif
490}
491
492bool Engine::HasGameViewportFocus()
493{

Callers

nothing calls this directly

Calls 2

BringToFrontMethod · 0.45
FocusMethod · 0.45

Tested by

no test coverage detected