Unity Issue Tracker - SettingsProvider.OnGUI API is called after OnDeactivate when exiting the Play Mode
Closed
UUM-3430
SettingsProvider.OnGUI API is called after OnDeactivate when exiting the Play Mode
Unity: Settings Window Framework
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2022.1.X
2021.2.X
2020.3.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
How to reproduce:
1. Open the user's attached "SettingsProviderBug" project
2. Open the "Edit > Project Settings> Test" window from the menu
3. Enter the Play Mode in the "SampleScene" Scene
4. Exit from the Play Mode
Expected result: Only the OnDeactivate method is invoked when exiting the Play Mode
Actual result: When exiting the Play Mode, SettingsProvider methods are invoked in the following order: four times OnGUI() is invoked, then OnDeactivate() and OnActivate()