Hi, we recently upgraded to from 2020.3 to 2021.2 and noticed that our builds are lacking any and all environmental lighting settings.
The game runs entirely in realtime right now, nothing baked. When we hit this issue we already tried to swap our skybox for Color as Source but even that is not yielding any result. In fact, nothing we change in this window has any effect on the build scene…
Attached is a comparison between scene (lighter scene) and dark (build)
Unity 2021.2.f10 using URP
This can be reproduced on Windows, macOS, Android and iOS
Are we missing an important change between 2020.3 and 2021.2?
Yep, but just to confirm, this is how our scene light settings look like. No change from 2020.3
I just regenerated the lighting to confirm that there is a LightingData asset attached to this scene,
Edit: Fresh 2021.2 project does not have this issue as seen in my next screen test (left new project build, right old project build) and I’ll update with my findings
Okay so here is the solution - maybe this helps anyone else:
Our project is pretty old and was upgraded from 2019.3 LTS to 2020.3 LTS to now 2021.2 (pre-LTS) over the years. It looks like our URP-Renderer and URP-Quality Profiles became corrupted between 2020 and 2021 even though by comparing them side by side they had the exact same settings visually and no signs of damage.
Whe ultimately solved this issue by generating completely new URP Renderer and URP Profiles through the menu and removing the old ones.
Had same issue - this fixed it for me. Apparently scenes without baked lighting still needs to generate light for some reason - don’t think this has always been a thing…