Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2018.4.X, 2019.2.X, 2019.3.X
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.7f1
2019.1.0a1
2019.2.0a1
Issue ID
1136244
Regression
No
Default Quality Settings are deleted after Creating a Scriptable object in [InitializeOnLoad] class then entering a Play Mode
How to reproduce:
1. Open the attached "QualitySettingsResetRepro.zip" Project
2. Open the "QualitySettings.asset" in the "New Unity Project(11)" > ProjectSettings folder and scroll down all the way to the bottom
3. Observe all the Platform Quality set to 5 (Ultra)
4. Right click on the "InitializeOnLoad.cs" in the Project View and click "Reimport"
5. Enter Play Mode
6. Observe the "QualitySettings.asset" default Platform Quality Settings
Expected Behavior: Default Quality Settings are not changed
Actual Behavior: Default Quality Settings are deleted and if you reload the project the Default Quality settings will be set to low in the ProjectSettings window
Reproducible with: 2017.4.23f1, 2018.3.9f1, 2019.1.0b7, 2019.2.0a8
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
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
- Editor crashes on PrepareSpriteTilingData when exiting Play mode
Resolution Note (fix version 2020.1):
When entering play mode we strip quality settings that are not used for the current configuration. This matches what is seen in the player built with the current build settings. When calling AssetDatabase.SaveAssets(); it will save the current state which will override the data in the project files to be the stripped quality settings. We recommend not calling AssetDatabase.SaveAssets(); in IntializeOnLoad.