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

Function OnUpdate

Source/Editor/Windows/GameCookerWindow.cs:1290–1316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1288
1289 /// <inheritdoc />
1290 public override void OnUpdate()
1291 {
1292 // Building queue
1293 if (!GameCooker.IsRunning)
1294 {
1295 if (_buildingQueue.Count > 0)
1296 {
1297 var item = _buildingQueue.Dequeue();
1298 var target = item.Target;
1299
1300 _preBuildAction = target.PreBuildAction;
1301 _postBuildAction = target.PostBuildAction;
1302
1303 bool failed = GameCooker.Build(target.Platform, target.Mode, target.Output, item.Options, target.CustomDefines, item.PresetName, target.Name);
1304 if (failed && _exitOnBuildEnd)
1305 {
1306 _exitOnBuildEnd = false;
1307 Engine.RequestExit(1);
1308 }
1309 }
1310 else if (_exitOnBuildEnd)
1311 {
1312 _exitOnBuildEnd = false;
1313 Engine.RequestExit(_lastBuildFailed ? 1 : 0);
1314 }
1315 }
1316 }
1317
1318 /// <inheritdoc />
1319 public override void OnDestroy()

Callers 14

SplineNodeMethod · 0.50
OnEditorUpdateMethod · 0.50
OnStartMethod · 0.50
OnStartMethod · 0.50
OnUpdateMethod · 0.50
UpdateProgressMethod · 0.50
OnStartMethod · 0.50
OnImportFileBeginMethod · 0.50
OnGameCookerProgressMethod · 0.50
OnGameCookerEventMethod · 0.50

Calls 3

RequestExitMethod · 0.80
DequeueMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected