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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
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.