Search Issue Tracker
Fixed in 2022.2.4f1
Fixed in 2023.1.0a26
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 2022.2.4f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-16018
Resolution Note (fix version 2023.1.0a26):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-16018