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

Method BuildScenesOrCancel

Source/Editor/Editor.cs:1309–1319  ·  view source on GitHub ↗

Starts building scenes data or cancels it if already running.

()

Source from the content-addressed store, hash-verified

1307 /// Starts building scenes data or cancels it if already running.
1308 /// </summary>
1309 public void BuildScenesOrCancel()
1310 {
1311 var isActive = StateMachine.BuildingScenesState.IsActive;
1312 var msg = isActive ? "Cancel baking scenes data?" : "Start baking scenes data?";
1313 if (MessageBox.Show(msg, "Scene Data building", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
1314 return;
1315 if (isActive)
1316 StateMachine.BuildingScenesState.Cancel();
1317 else
1318 StateMachine.GoToState<BuildingScenesState>();
1319 }
1320
1321 /// <summary>
1322 /// Starts lightmaps baking for the open scenes or cancels it if already running.

Callers

nothing calls this directly

Calls 2

ShowMethod · 0.45
CancelMethod · 0.45

Tested by

no test coverage detected