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
-
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
- The LOD Group CrossFade Animate Cross-fading feature does not fade when the GPU Resident Drawer is enabled
- [Android Module] Unity double writes files in the "StreamingAssets" folder when they are deleted using "IPostGenerateGradleAndroidProject" after the Grandle project is generated
- IndexOutOfRangeException and InvalidOperationException when clicking on the HTML log in the Console
- Warnings "Attempting to draw with missing bindings" are logged when opening the HDRP VFX Template Sample Scene
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-16018