- Home /
Point light working in scene view but not in game
I've created a 2D point light over my player object and it shows in scene view, but doesn't show in the game or Camera Preview
However, I've also tested a global light which works in both. What could cause this for a point light?
Screenshot of Camera settings
I have the exact same problem... I would love to know what's happening.
Answer by youwho42 · Jul 31, 2019 at 11:10 AM
I just got it, it's the z-axis on the light, needs to be in the cameras view...
Answer by MidievalMan · Jun 22, 2021 at 08:01 PM
For anyone else having this problem: check the z-axis value of the light's parent objects as well. I thought this wasn't my problem for about an hour until I realized that my lights were under an empty gameobject which was under another empty gameobject (for organization) that I had forgotten to reset the transform of and which was at the z-coordinate -350.
Your answer
![](https://koobas.hobune.stream/wayback/20220612205754im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is it possible (how?) to hide a light effect with a 2D sprite? 0 Answers
Lighting 2d Sprites in 3d environment 0 Answers
Extrange Behaviour with 2D Lights in Universal RP 0 Answers
Is it possible to use soft shadows in 2D using URP? 1 Answer
2D and 3D lights in a scene. URP,2D and 3D lights in scene URP 1 Answer