Darker Level when Player Respawn

I’m new to Unity and I’m making a roll-a-ball game. If it fell to the lower ground, it’s supposed to restart level . And i use this code “SceneManager.LoadScene(SceneManager.GetActiveScene().name);”. It worked for me. But it make the level a little bit darker, even though i use any kind of light, and those lights are still functional. Can anyone help me?

1 Answer

1

This is a pretty common problem that has to do with how the lighting is automatically baking when it should be set to manual. Not completely sure why it does this.
Just go to Window → Lighting → Lightmap Tab → Disable Auto-> Press Build to bake the lighting once manually. This should fix the problem.