Unity Issue Tracker - The Scene is not set to dirty when calling EditorUtility.SetDirty from within MonoBehaviour.OnValidate
Closed
UUM-63946
The Scene is not set to dirty when calling EditorUtility.SetDirty from within MonoBehaviour.OnValidate
Unity: Scene Management
Won't Fix
2023.3.X
2023.2.X
2022.3.X
2021.3.X
To manually mark a scene as dirty please refer to our documentation here: https://support.unity.com/hc/en-us/articles/115002294603-How-do-I-make-a-scene-dirty-when-modifying-a-property-via-script
How to reproduce:
1. Open the attached project "IN-68131.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Open Assets/Scenes/SampleScene1.unity
Expected results: "Scene(s) Have Been Modified" window is thrown
Actual results: No "Scene(s) Have Been Modified" window is thrown