Search Issue Tracker
Fixed in 5.2.0
Votes
10
Found in
5.0.0f4
Issue ID
681547
Regression
Yes
[RealtimeGI] Reloading a scene in game mode makes it lose lighting in editor if realtime GI is used
Steps to reproduce:
1. Open the attached project
2. Open 'Testbed' scene
3. Wait for the baking to complete
4. Play the scene
5. Press Enter to make it skip to the wave
6. Wait for enemies to kill the player
7. Restart the game by clicking the button
8. Quit play mode
9. The scene is now completely black
Note: Does not happen if baked GI is used instead of realtime GI.
Comments (6)
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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
helgewl
Sep 17, 2015 09:07
In Unity 5.2.0f3, if you call DynamicGI.UpdateEnvironment() after scene has loaded in the editor, this will fix the missing GI.
I have implemented this workaround in a persistent (DontDestoyOnLoad) MonoBehaviour:
void OnLevelWasLoaded(int level) {
#if UNITY_EDITOR && (UNITY_5_0 || UNITY_5_1 || UNITY_5_2_0)
if (UnityEditor.Lightmapping.giWorkflowMode == UnityEditor.Lightmapping.GIWorkflowMode.Iterative) {
DynamicGI.UpdateEnvironment();
}
#endif
}
TheNovice
Aug 30, 2015 06:54
I found a quick fix. *Disregard previous post it was useless.
Go to the Hierarchy Dialog,
Select the Environment.
In the Inspector click the enable / disable check box in upper right hand corner.
Cut it off then back on.
The scene should reload.
TheNovice
Aug 30, 2015 03:03
Go to the Windows Tab,
Select Lighting,
Switch ambient GI from real time to baked.
Finally, wait for the bake to complete,
save scene and play...
MrMeows
May 12, 2015 23:09
I can confirm that this issue occurs every single time. However, it can be solved by deactivating the black renderers, waiting for a few seconds, and reactivating them.
Astray-BI-
Mar 29, 2015 08:19
I had this issue as well through the SpaceShooter tutorial. When the gameController restart the scene with Application.loadLevel command, the scene is reloaded as I wish, but the lighting were missing.
JosiahJack
Mar 19, 2015 03:06
I have been having this same issue! I was following the SurvivalShooter tutorial and, as a new user, I found this particularly frustrating. I kept on with the tutorial and it eventually reset back to normal after playtesting a few times.