Search Issue Tracker
Won't Fix
Won't Fix in 6000.0.X
Votes
0
Found in
2022.3.24f1
2023.2.18f1
6000.0.0b14
Issue ID
UUM-70610
Regression
No
Data is not serialized correctly on time when OnValidate is used to retrieve the data
How to reproduce:
1. Open the “ScriptableSaveBug.zip“ project
2. Observe the Console
Expected result: The serialized data value is the same as the expected value
Actual result: The serialized data has the value of the previous state
Reproducible in: 2022.3.24f1, 2023.2.18f1, 6000.0.0b14
Could not test in: 2021.3.37f1 (Unsolvable script compilation errors)
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
- To reproduce the issue the second time, the “Value: “ in the “Test Scriptable Object.asset“ Asset has to be changed to 0 before opening the project
- Workaround is to change the “Value: “ in the “Test Scriptable Object.asset“ Asset to 1 before opening the project
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
Since the OnValidate method can be called from a separate thread or process, relying on the timing of changes made in this method is unreliable. Triggering the editor update callback from this method is also inadvisable since that callback is specifically for after an inspector refresh, which will not happen in the importer process.
Resolution Note (6000.0.X):
Since the OnValidate method can be called from a separate thread or process, relying on the timing of changes made in this method is unreliable. Triggering the editor update callback from this method is also inadvisable since that callback is specifically for after an inspector refresh, which will not happen in the importer process.