Environmental lighting not rendering in build with 2021.2

Edit: The solution we found Environmental lighting not rendering in build with 2021.2

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?


Have you clicked on Generate Lighting?
You need to do, but it was the same on Unity 2020.3.

1 Like

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,7881619--1002601--upload_2022-2-9_9-44-16.png

testing an empty scene (in the same project) yields the same result
Left: Editor
Right: Build

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.

4 Likes

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…

1 Like

You’re my hero! How did you find that out by the way?
Recreating those assets ulltimately fixed the issue for us as well.

2 Likes

trial & error and spending way too many expensive days on figuring this out… :wink:

2 Likes