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

Function OnLightmapsBake

Source/Editor/Managed/ManagedEditor.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43MMethod* Internal_RequestStartPlayOnEditMode = nullptr;
44
45void OnLightmapsBake(ShadowsOfMordor::BuildProgressStep step, float stepProgress, float totalProgress, bool isProgressEvent)
46{
47 if (Internal_LightmapsBake == nullptr)
48 {
49 Internal_LightmapsBake = ManagedEditor::GetStaticClass()->GetMethod("Internal_LightmapsBake", 4);
50 ASSERT(Internal_LightmapsBake);
51 }
52
53 MainThreadManagedInvokeAction::ParamsBuilder params;
54 params.AddParam(step);
55 params.AddParam(stepProgress);
56 params.AddParam(totalProgress);
57 params.AddParam(isProgressEvent);
58 MainThreadManagedInvokeAction::Invoke(Internal_LightmapsBake, params);
59}
60
61void OnLightmapsBuildStarted()
62{

Callers 3

OnLightmapsBuildStartedFunction · 0.85
OnLightmapsBuildProgressFunction · 0.85
OnLightmapsBuildFinishedFunction · 0.85

Calls 2

AddParamMethod · 0.80
GetMethodMethod · 0.45

Tested by

no test coverage detected