Unity Issue Tracker - PlayerSettings.colorSpace is returning the wrong value when called from a worker process
Fixed
UUM-1553
PlayerSettings.colorSpace is returning the wrong value when called from a worker process
Unity: Asset - Database
Fixed
2023.2.X
Won't Fix
2023.1.X
2022.3.X
2022.2.X
The Dirty Asset Overlays feature had to be implemented for this change to be possible, and as such it will not be backported to 2023.1, since we don't backport features. Instead, upgrading to 2023.2 is recommended if this problem is a show stopper.
The Dirty Asset Overlays feature had to be implemented for this change to be possible, and as such it will not be backported to 2022.3, since we don't backport features. Instead, upgrading to 2023.2 is recommended if this problem is a show stopper.
Steps to repro:
Create a new URP project
Set the Build Target to iOS
Create a reflection probe
Bake the Lighting (click the 'Generate Lighting' button in Lighting window)
Go to the Player Settings and choose Linear Color space (Other settings -> Rendering)
Switch the lightmap encoding quality (Player Settings -> Other settings -> Rendering) back and forth between Low Quality, Normal Quality and High Quality
The ReflectionProbe-0 preview icon in the right panel of the project window will refresh, note how it is too bright compared to the preview in the inspector window.
Unfortunately the bug is not 100% reproducible since the rendering of the preview icon is not always called from a worker thread.
Note:
On Windows 10, changing lightmap encoding quality to Medium, previews in the inspector and project window turn bright.
This issue happens because of the Playersetting is not synced properly across the processes.This is a known issue.
Thumbnails are rendered in asset import worker process in CubemapPreview::RenderStaticPreview(). In which it access PlayerSettings.colorSpace in CubemapPreview::RenderCube() function.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?