Search Issue Tracker

Fixed

Fixed in 2020.3.42f1, 2021.3.10f1, 2022.1.20f1, 2022.2.0b8, 2023.1.0a5

Votes

2

Found in

2020.3.35f1

2022.2.0b1

2023.1.0a1

Issue ID

UUM-2743

Regression

Yes

Scene is brighter in Standalone player if it was open in the Editor at build time

Shadows/Lights

-

Reproduction steps:

1. Check out repository https://github.com/Wilfrid-Unity/test-unity-scene-brightness that contains repro-projects
2. Start UnityEditor from Trunk revision 38ec60822087 or later (Oct. 17)
3. Open either project "test-birp-scene-brightness" or "test-urp-scene-brightness" (issues happens both in URP, BiRP, and HybridRP)
4. Make sure that scene "Scenes/BlocksScene" is NOT opened in the Editor
5. Build and run a first Development Build of the project that includes only scene "Scenes/BlocksScene"
6. Take a first screenshot of the scene in the first Standalone Player
7. Now in UnityEditor OPEN scene "Scenes/BlocksScene"
8. Build and run a second Development Build of the project that includes only scene "Scenes/BlocksScene"
9. Take a second screenshot of the scene in the first Standalone Player

Expected Result: First screenshot and second screenshot look the same.
Actual Result: First screenshot is darker, second screenshot is darker. Regression introduced in Version 2019.4.20f1;

Compare:

https://raw.githubusercontent.com/Wilfrid-Unity/test-unity-scene-brightness/master/standalone-player-screenshot-when-scene-was-not-open-in-editor-at-build-time.png
https://raw.githubusercontent.com/Wilfrid-Unity/test-unity-scene-brightness/master/standalone-player-screenshot-when-scene-was-open-in-editor-at-build-time.png

Additional information:

- Reproducible in 2022.1.0a13, 2021.2.0f1, 2021.1.27f1, 2020.3.21f1, 2019.4.32f1, 2019.4.20f1
- Not reproducible in Version 2019.4.19f1;
- Regression has been introduced with the skymanager refactor PR;
- The same issue happens in both Windows Standalone Player, as well as Switch Standalone Player (I did not test other platforms)
- The same issue happens with both UniversalRP, Built-In RP, or Hybrid Renderer (I did not test HDRP).

The test scene that can be used for Hybrid Renderer is this one:
https://github.com/Unity-Technologies/Graphics/blob/d82f0afe1b663e7d3b2dc6df82fce48a9c4419fe/TestProjects/UniversalHybridTest/Assets/SampleScenes/BRGGameObjects/BRGGameObjects.unity

  1. Resolution Note (fix version 2021.3.10f1):

    Fixed in 2021.3.10f1.

Comments (1)

  1. taedal5

    Jun 20, 2022 15:25

    I can see differences in the way environmental lighting is handled between editor and build regardless of what scene is open at build URP. It seems related, so a fix would be welcome.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.