Search Issue Tracker
By Design
Votes
0
Found in
5.6.1f1
Issue ID
962617
Regression
No
MarkSceneDirty() and MarkAllScenesDirty() does not work when called in OnValidate
To reproduce:
1. Open the project, attached by the user (BugOnValidateSceneDirty.zip)
2. Open the "Scene0" scene
3. Open the "Scene1" scene
4. Observe the console
Expected: MarkSceneDirty/MarkAllScenesDirty works as expected when it is called in OnValidate when the scene is opened
Reproduced in 5.6.4p2, 2017.1.2p2, 2017.2.0f3, 2017.2.0p1, 2017.3.0b9, 2018.1.0a4
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
- VisionOS Player and Simulator crashes on "nw_read_request_report [C1] Receive failed with error "No message available on STREAM"" when playing a video through VisionOSVideoComponent
- Shader starts acting unexpectedly when SV_primitiveID is used in a Hull/Domain Shader
- [iOS] "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously when using specific Project Settings and Anti-aliasing is enabled
- Inconsistent help box font size in Project Settings window
- Local package MonoBehaviour scripts appear as missing after updating the project when the project and package paths share the same prefix
Resolution Note:
OnValidate is part of scene loading and the scene drityness is cleared after load has completed