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

Method GetMainWindow

Source/Editor/Managed/ManagedEditor.cpp:332–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332Window* ManagedEditor::GetMainWindow()
333{
334 ASSERT(HasManagedInstance());
335 const auto method = GetClass()->GetMethod("GetMainWindowPtr");
336 ASSERT(method);
337 return (Window*)MUtils::Unbox<void*>(method->Invoke(GetManagedInstance(), nullptr, nullptr));
338}
339
340bool ManagedEditor::CanReloadScripts()
341{

Callers 1

CreateMainWindowMethod · 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