MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / OpenAssetEditor

Method OpenAssetEditor

Engine/Editor/Source/UI/EditorUI.cpp:1117–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115 DotNet::RequestScriptReload();
1116 }
1117
1118 // A small budget avoids a hitch while cold thumbnails fill in a few per frame.
1119 CThumbnailManager::Get().ProcessRenderQueue();
1120
1121 MaterialCompiles.Tick();
1122 ParticleCompiles.Tick();
1123 ImpostorBaker.Tick();
1124 }
1125
1126 void FEditorUI::BakeFoliageImpostors()
1127 {
1128 if (WorldEditorTool != nullptr && WorldEditorTool->GetWorld() != nullptr)
1129 {
1130 ImpostorBaker.EnqueueFoliage(*WorldEditorTool->GetWorld());
1131 }
1132 }
1133
1134 void FEditorUI::OnEndFrame(const FUpdateContext& UpdateContext)
1135 {
1136 LUMINA_PROFILE_SCOPE();
1137
1138 MovieCapture::Tick();
1139
1140 for (FEditorTool* Tool : EditorTools)
1141 {
1142 Tool->EndFrame();
1143 }
1144 }
1145
1146 double FEditorUI::GetToolWorldUpdateInterval(const CWorld* ToolWorld, bool bFocused) const
1147 {
1148 // Focused means the last tool with a world, since a material's node graph edits still want a live preview.
1149 if (bFocused || ToolWorld == nullptr)
1150 {
1151 return 0.0;
1152 }
1153
1154 // A Game or Simulation world is PIE, and throttling it would stutter the thing being played.
1155 if (ToolWorld->GetWorldType() != EWorldType::Editor)
1156 {
1157 return 0.0;
1158 }
1159
1160 const int32 BackgroundFPS = GetDefault<CEditorSettings>()->MaxBackgroundFPS;
1161 if (BackgroundFPS <= 0)
1162 {
1163 return 0.0;
1164 }
1165

Callers 4

DrawPropertyMethod · 0.80
OnInitializeMethod · 0.80
DrawAssetContextMenuMethod · 0.80
DrawAssetTableRowsMethod · 0.80

Calls 11

GetToolNameMethod · 0.80
HasSimulatingWorldMethod · 0.80
StopAllSimulationsMethod · 0.80
CreateAssetEditorMethod · 0.80
GetFunction · 0.50
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
GetWorldMethod · 0.45
SetWorldMethod · 0.45
insert_or_assignMethod · 0.45

Tested by

no test coverage detected