- Home /
Lighting is different after changing scene
I'm using a persistent scene to keep data constant between scenes. The lighting settings do change when I switch to another scene, just like I expect they would, but somehow they don't yield the expected results.
For example, I have a dark grey/orange ball in the first scene (the main menu) loaded by the persistent scene. After loading a couple of other scenes, going back to the main menu makes the ball a brighter orange and the lighting is flat. The settings do appear to be the same in the Inspector.
Answer by FNDEBOER · Jun 30, 2017 at 12:24 PM
In case anyone else is experiencing this problem: It turns out there was a set of light probes in the second scene that propagated to all the other scenes and didn't respond to OnDestroy(). Changing them didn't help, I just removed them altogether and now everything is fixed.
Might be a bug in the light probe system.
Answer by webcam · Jun 27, 2017 at 04:31 PM
Just guessing here but if your persistent scene is your menu then when you go back to the menu you will have two orange balls in your scene. That would explain the brightness at least. My strategy for this is I usually have a setup scene that has no lighting only the camera and my managers, the setup scene is persistent and automatically loads the menu.
No, the menu is a separate scene like you describe. Every object is as it should be (no dupes) and so are the lighting settings in the inspector.
Alle baked lighting works, by the way. Only the GI is affected. I am at a loss.
Answer by JonPQ · Jun 27, 2017 at 09:10 PM
check your window->lighting ambients settings.. does it change when you load the other scene ?
The ambients settings change to the newly loaded scene like they should. Everything in the Inspector is as it should be. Except that what I'm seeing on screen is definitely another ambient lighting set.
Your answer
![](https://koobas.hobune.stream/wayback/20220612125009im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to persist player inventory using dictionary between scenes 2 Answers
How do I fix lighting glitch between scenes? 1 Answer
Best practice for using static classes to persist between scenes 0 Answers
What is the best way of resuming game scene after the menu scene? 0 Answers
Switching between several levels 1 Answer