Steps to reproduce:
- Create a new Unity project using the Universal 3D template
- Create a new Visual Element (UI Toolkit > Standard Elements > Visual Element)
- Click "Continue"
- Exit the Editor
- Click "Save"
- Click "Cancel"
- Observe the Editor
Actual results: The Editor is closed with unsaved changes
Expected results: The Editor is not closed because the "Cancel" button was clicked
Reproducible with versions: 6000.6.0b4, 6000.7.0a2
Can’t test with versions: 6000.0.79f1, 6000.3.20f1, 6000.5.4f1 (due to feature not existing)
Tested on (OS): MacOS SIlicon Tahoe 26.5.1
Notes:
- Does not reproduce with UI Builder since the UI Builder's unsaved changes popup appears before the Save Scene popup