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

Method FocusGameViewport

Source/Editor/Managed/ManagedEditor.cpp:405–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void ManagedEditor::FocusGameViewport() const
406{
407 if (HasManagedInstance())
408 {
409 if (Internal_FocusGameViewport == nullptr)
410 {
411 Internal_FocusGameViewport = GetClass()->GetMethod("Internal_FocusGameViewport");
412 ASSERT(Internal_FocusGameViewport);
413 }
414 Internal_FocusGameViewport->Invoke(GetManagedInstance(), nullptr, nullptr);
415 }
416}
417
418Float2 ManagedEditor::ScreenToGameViewport(const Float2& screenPos) const
419{

Callers 2

OnPlayBeginningMethod · 0.45

Calls 5

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

Tested by

no test coverage detected