- Home /
How to fix scene too dark at runtime?
The scene looks fine in the editor, but when I runs it my objects have a black shadow and the lighting isn't the same. I have a rotating directional light in the scene to simulate night and day and I've had this issue before where if the scene started in the night time (directional light pointing above x axis) and I fixed it by making sure the scene always starts in the daytime (directional light pointing below x axis). But now it is doing this regardless of where the light points. Thanks in advance for any help!!
Did you ever figure this out? I am having the exact same problem.
I'm having this issue as well! did you get it figured out? FYI Conan$$anonymous$$orris 's reply did not work for me.
http://answers.unity3d.com/questions/1287347/shadows-much-darker-in-build-than-in-editor.html
In the Editor viewport toolbar select the little Light icon to enable the use of scene lighting (ins$$anonymous$$d of generic light attached to scene view).
Are you say enable lighting preview, at the top of the scene view? Ya I have that enabled, that's not the issue at all. Everything is baked and looks fine when i test it. It's when I build, and play the game.
Answer by Conan Morris · Jun 23, 2015 at 12:48 PM
For myself, this issue seemed to have been caused by my switching from between dark and light sky boxes during day and night.
Looks like the ambient lighting in unity is by default associated with your Sky box. When the game started at night, it used my dark sky box to set my ambient light levels. This which made everything quite dark.
This can be fixed by going into Window -> Lighting -> Scene. Change Ambient source to Color instead of SkyBox and set the Ambient Color to a light grey.
Hope this helps.
Answer by Zelre · Jan 08, 2017 at 10:01 AM
Old post, but this may help anyone else trying to solve this problem: If you've set your ambience setting to skybox, and your shadows are extremely dark, go to your directional light and lower the strength setting. Should fix it.
Your answer

Follow this Question
Related Questions
Light creates distortion on mesh? 1 Answer
No shadows. 2 Answers
Pixels per Unit / Pixel Perfect Shadows, possible? 1 Answer
orthographic camera and shadow 1 Answer