Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a12
2019.1.0a13
2019.2.0a1
Issue ID
1117155
Regression
Yes
Light data loading is delayed when loading a new scene using SceneManager.LoadSceneAsync
How to reproduce:
1. Open "Scene1" in attached "LightingBug.zip" project
2. Press play
3. press "Load Scene2" in the game
4. After about 5 seconds exit Play Mode
5. Go to Assets > Screenshots and refresh the project folder (CTRL + R)
6. Inspect the screenshots
Expected Behavior: In both screenshots scene is illuminated the same way
Actual Behavior: In one screenshot the light is not fully baked when it is in another
Reproducible with: 2019.1.0a12, 2019.1.0a14, 2019.2.0a1
Does not reproduce with: 2017.4.18f1, 2018.3.1f1, 2019.1.0a11
Note: One screenshot is made at the start of the scene(scene2_1) and another one after 2 seconds(scene2_2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit meshes are fully rendered and rasterized when opacity is 0
- Light rendering artefacts appear in the Editor when assigning unsupported 3D Custom Render Texture in Camera’s Output Texture, unclearable errors and warnings spammed
- Memory leak when running a test with "GfxThreadingMode" set to "SplitJobs"
- Loading Unloaded unsaved Scene throws “ArgumentException” error in the Console
- Crash on std::__1::__tree_const_iterator when opening the Build Profiles window in a specific project
Resolution Note:
The scene is using realtime GI which takes a couple of frames to converge.
So adding the following lines just before taking the first screenshot will provide the desired result:
while( !DynamicGI.isConverged )
{
yield return null;
}