Search Issue Tracker
By Design
Votes
0
Found in
2021.3.40f1
2022.3.40f1
6000.0.13f1
Issue ID
UUM-76956
Regression
No
UI Builder does not warn users or ask for confirmation before a new file is opened/created when there are no unsaved changes
*Steps to reproduce:*
# Open a Unity project
# Open the UI Builder via Window > UI Toolkit > UI Builder
# Make some changes to the unsaved file and then save with any name via File > Save on the toolbar
# Create a new file within UI Builder via File > New on the toolbar
*Actual results:* A new file is created and shown within the UI Builder window. The previous file is no longer shown within the window unless it is re-opened.
*Expected results:* As the previous file will be closed and a new one opened, it is expected that the user will be asked for confirmation (or at least warned).
*Reproducible with versions:*
* 6000.0.13f1
* 2022.3.40f1
* 2021.3.40f1
*Not reproducible with versions:* -
*Can’t test with versions:* -
*Tested on (OS):* Windows 10, Windows 11
*Notes:*
* This is a usability issue because UI Builder is a monolithic window and doesn't support multi-windows. While other areas of the Unity Editor (and other applications like Google Docs, e.t.c) do not usually ask for confirmation (or give a warning) when opening or creating a new file, it does not affect usability in those cases as it opens a new window and the previous file is not closed. Within UI Builder, this is not the case and the previous file has to be closed for a new one to be loaded in.
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
- Mouse and Pointer Events are called incorrectly in ScrollView with XRUIInputModule
- Scene view freezes when "NullReferenceException" is thrown in a .delayCall
- Memory leak occurs when repeatedly minimizing and maximizing the UI Builder window
- Crash on block_remove when opening a project with a corrupted library
- Scene View tab becomes unclickable when opening a message from the Console Window with Visual Studio
Resolution Note:
By design, the UI Builder will not ask for confirmation if there are no unsaved changes in the document. It is assumed that it's the intention of the user to open a new document and adding a confirmation step here would be detrimental to the user experience.
The workflow is the same as opening a new scene (File > New Scene), when there are no unsaved changes in the current scene. A new scene is simply opened without asking for confirmation.