Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.7f1
2022.1
Issue ID
1396874
Regression
No
Custom Settings Provider does not save edited values
Reproduction steps:
1. Open the user's attached project
2. Open Edit > Project Settings > MyCustomSettingsProvider
3. Change one of the fields
4. Close and open Unity Editor
5. Open Edit > Project Settings > MyCustomSettingsProvider
Expected result: Changes have been saved
Actual result: Changes didn't save
Reproduced with: 2019.4.35f1, 2020.3.27f1, 2021.2.9f1, 2022.1.0b5
Could not test with: 2022.2.0a2 ("The name 'Unsafe' does not exist in the current context")
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
- ArgumentOutOfRangeException is thrown when an empty DropdownField is clicked at runtime
- [tvOS] "EXC_BAD_ACCESS" error is thrown when Painter2D.ClosePath is called
- Bad Naming Convention in Shortcuts Window for Sprite Shape Editing
- Bad Naming Convention in Shortcuts Window for Shader Graph
- Bad Naming Convention in Shortcuts Window for Particle System
Resolution Note (2022.2.X):
The issue is in the user code. In fact, you should create a C# Script with the same name as your custom settings class. In this case, you should create a separate C# script, MyCustomSettings.cs, for your MyCustomSettings class. In other words, your DearImGuiSettings.cs script should only contain your MyCustomSettingsProvider class. Once that is done, you should reinitialize your MyCustomSettings.asset by deleting it in your Project browser and reactivating it by clicking on your custom settings page in the Project Settings window.