Steps to reproduce:
- Open a URP Unity project
- Create a new Shader Graph asset in your assets via Create > Shader Graph > URP > Lit Shader Graph
- Open your new Shader Graph asset by double clicking on it
- Make sure the Shader Graph window is docked in the Editor and not floating
- Make some visible changes in the asset without saving (e.g. add a new float property or create a new node)
- In the top right of the editor, press the layout drop-down and click 'Reset All Layouts'
- Press 'Continue' on the pop-up
Actual results: The layout of the editor is reset and all unsaved changes for the Shader Graph Asset are lost.
Expected results: One of two results is expected:
- An 'Unsaved Changes Detected' pop-up is given to the user before the layout is reset, with the user having the usual option of being able to 'Save' or 'Discard'. This is how it was for Shader Graph before the FAV.
- The layout is reset, however the user can re-open the Shader Graph Asset and all their unsaved changes will have been persisted. This is how it works in VFX Graph and UI Toolkit.
Reproducible with versions:
- 6000.0.13f1
- 2022.3.40f1
- 2022.2.2f1
Not reproducible with versions:
Can’t test with versions: -
Tested on (OS): Windows 10/11
Notes: -