Steps to reproduce:
- Create and open a new project
- Open Project Settings -> Graphics -> Shaders
- Add a new Keyword Declaration Override using the "+" button
- Enter Play Mode
- Click "Revert" on the prompt dialog box
- Observe the Console
Actual results: An "NullReferenceException: SerializedObject of SerializedProperty has been Disposed." error is thrown
Expected results: Nothing is thrown in the Console
Reproducible with versions: 6000.4.9f1, 6000.5.0b10, 6000.6.0a6
Could not test with versions: 6000.3.0a6, 6000.3.16f1, 6000.5.0b9, 6000.6.0a5 (No Unsaved Changes dialog box)
Tested on (OS): Windows 11 Pro (25H2)
Notes:
- In 6000.3.0a6, no prompt was asked when entering Play Mode
- Also reproducible by forcing a script recompile
- Might need to be reproduced twice to trigger the NullReferenceException