Search Issue Tracker
Fixed
Votes
1
Found in
2020.3.39f1
2021.3.13f1
2022.1.20f1
2022.2.0b10
2023.1.0a12
Issue ID
UUM-17786
Regression
No
EditorSceneManager.BackupScenes saves non-dirty scenes when entering Play Mode
How to reproduce:
1. Open the attached “EmptyProject” project
2. Select “Window” → “Analysis” → “Profiler” in the main menu
3. Enable the “Deep Profile” option
4. Change the “Timeline” option to “Hierarchy”
5. Change “Play Mode” to “Edit Mode”
6. Enter Play Mode
7. Stop the recording of the Profiler
8. Select the first frame of entering Play Mode
9. Navigate to “EditorLoop” → “Application.Tick” → “EnterPlayMode” → “EditorSceneManager.BackupScenes“
10. Observe the calls of the EditorSceneManager.BackupScenes function
Expected result: SaveScene is never called
Actual result: SaveScene is called 3 times (1 call for each Scene)
Reproducible with: 2020.3.39f1, 2021.3.13f1, 2022.1.20f1, 2022.2.0b10, 2023.1.0a12
Reproducible on: Windows 10
Comments (1)
-
Ghat-Smith
Dec 19, 2022 12:07
That's really disappointing. I made this report and I was really expecting it to be fixed.
For projects using additive scenes it would have been a huge gain in terms of productivity.
Instead of that, the issue is marked as "Duplicate" and the linked issue seems to be completely unrelated. If someone could explain me how saving scenes which are already saved on the disk would prevent losing hierarchy selection? That doesn't make sense to me.
A "won't fix" with a quick explanation would have been as much as disappointing, but at least it would have been honest...
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [macOS] Project fails to load when Virtual Artifacts are Corrupted
- Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
- The project hangs upon opening it when importing the "discrete_rank2_vector_v2_0.onnx" file
- Opening the Look Dev hangs the Editor when the window is opened for the first time in the project or after deleting the Library folder
- Look Dev has blurry icons on 4k monitors
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-16018