- Home /
The question is answered, right answer was accepted
Light breaks after entering Play Mode
When entering play mode one of my prefabs seemingly breaks its lighting. The prefab is instantiated as the child of another prefab and everything works fine till exiting play mode. After that even in scene view (with lighting toggled on) the light is not working with any parameters. I can set any parameter on the light component without any change. Yet when I duplicate the light or create a new light, it gets rendered correctly. The light is neither switched off, nor has it any wrong parameters. I can repair the light by duplicating it inside the prefab and lighting will work, till I hit "Play" again. Can anybody explain what I'm missing? Something with Forward rendering path maybe? Each Room has it's own mesh, so currently it's 2 lights per mesh at most. That shouldn't be a problem.
Tested with Unity 2018.3.5f1 and 2018.3.6f1.
Instantiated
Duplicated
Answer by ColdJackle · Mar 01, 2019 at 10:52 PM
I seem to have fixed my problem. I still don't know why it works after duplicating the light, but I noticed that the light ranges were higher than they needed to be, so I tweaked them a little and now it's are working properly. So I guess it was something with overlapping point light sources.