Starts building scenes data or cancels it if already running.
()
| 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. |