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

Method GameViewportToScreen

Source/Editor/Managed/ManagedEditor.cpp:435–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435Float2 ManagedEditor::GameViewportToScreen(const Float2& viewportPos) const
436{
437 Float2 result = viewportPos;
438 if (HasManagedInstance())
439 {
440 if (Internal_GameViewportToScreen == nullptr)
441 {
442 Internal_GameViewportToScreen = GetClass()->GetMethod("Internal_GameViewportToScreen", 1);
443 ASSERT(Internal_GameViewportToScreen);
444 }
445 void* params[1];
446 params[0] = &result;
447 Internal_GameViewportToScreen->Invoke(GetManagedInstance(), params, nullptr);
448 }
449 return result;
450}
451
452Window* ManagedEditor::GetGameWindow(bool forceGet)
453{

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