Lighting different in Editor than in Build - new to Unity - please help!!
Hi there -
Attached are two images of my project (the first a screen shot from the editor, the second is from my WebGL build). I'm not sure why my lights are not transferring over...
I have three directional lights (one of which is the Scene's default).
What am I doing wrong?
Also - my aspect ratios are driving me nuts. My Main Camera is set at 1920 x 1080, but when I Build at that resolution it still ends up looking differently...
Ugh! Allie
did you figure it out? same thing happening in my projects too, I am using URP.
Answer by streeetwalker · Sep 18, 2020 at 03:07 PM
this is a common issue. Different platform do not handle lighting in the same way.
Do a complete search on the web for "Unity WebGL lighting issues" and fiddle with the search terms to get a wider variety of results.
Because there are a number of settings involved, and we cannot see your export settings and lighting settings, it's not possible to know exactly where your specific problem is, and you're better off seeking answers on the Web. You'll find a number of solutions
Here is one to get you started:
https://www.reddit.com/r/Unity3D/comments/5uviux/webgl_export_messes_up_lighting/
Your answer
![](https://koobas.hobune.stream/wayback/20220612211418im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Volumetric glow from emissive material in HDRP? 0 Answers
Light mapping, separating objects in to different light maps 0 Answers
Light Weight RP lighting is broken 0 Answers
SpriteDiffuse shader has inconsistent interaction with point/spot lights? 1 Answer
Is 1 unit of light.intensity equal to 1 lux in real life? (NOT using HDRP!) 0 Answers