Unity Issue Tracker - SettingsService.NotifySettingsProviderChanged() Doesn't Call OnDeactivate for Existing SettingsProviders when new ServiceProvider is created
Fixed
UUM-99153
SettingsService.NotifySettingsProviderChanged() Doesn't Call OnDeactivate for Existing SettingsProviders when new ServiceProvider is created
Unity: Settings Window Framework
Fixed
6.2.X
6.1.X
6.0.X
2022.3.X
Editor: Fixed SettingsService.NotifySettingsProviderChanged() not calling OnDeactivate() for existing providers.
Editor: Fixed SettingsService.NotifySettingsProviderChanged() not calling OnDeactivate() for existing providers.
Editor: Fixed SettingsService.NotifySettingsProviderChanged() not calling OnDeactivate() for existing providers.
Editor: Fixed SettingsService.NotifySettingsProviderChanged() not calling OnDeactivate() for existing providers.
Steps to reproduce:
1. Open the attached “Repro2097282.zip” project
2. Click Edit → Project Settings
3. Observe the Console Window of the created ServiceProvider’s ID
4. Open the “MySettings” tab in Project Settings
5. Observe the “OnActivate” call in the Console Window with the same ID
6. In the Project Browser, create a new folder
7. Observe the Console Window that a new ServiceProvider is created
8. In Project Settings, switch to another tab that is not “MySettings”
9. Observe the Console Window
Expected result: The “OnDeactivate” call is shown with the first ServiceProvider’s ID
Actual result: The “OnDeactivate” call is shown with the newly created ServiceProvider’s ID