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

Method HasGameViewportFocus

Source/Editor/Managed/ManagedEditor.cpp:390–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390bool ManagedEditor::HasGameViewportFocus() const
391{
392 bool result = false;
393 if (HasManagedInstance())
394 {
395 if (Internal_HasGameViewportFocus == nullptr)
396 {
397 Internal_HasGameViewportFocus = GetClass()->GetMethod("Internal_HasGameViewportFocus");
398 ASSERT(Internal_HasGameViewportFocus);
399 }
400 result = MUtils::Unbox<bool>(Internal_HasGameViewportFocus->Invoke(GetManagedInstance(), nullptr, nullptr));
401 }
402 return result;
403}
404
405void ManagedEditor::FocusGameViewport() const
406{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected