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
- HDRP 6-way VFX Shader is lit incorrectly when World coordinates are used
- 2D Sprite Renderer in front is affected by Sprites in the background when using Sorting Layers and a Shadow Caster 2D with Self Shadow
- Modifying UI Prefab child's Height only confirms the first 1 or 2 digits when the Scene is newly opened or the Prefab is newly created
- ProfilingSampler.Get() returns null and makes the Player only render black when building a Release Build
- Search text field visual controls for the Path binding in an Input Actions Asset is misaligned
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-16018