Why do my lights flicker randomly?

Hello there!

I followed a tutorial in order to have a Day/Night cycle with my main directional light and now I came to the point where I realized I needed lights outside like streetlamps, car’s headlights etc…

The thing is, when I add a Spotlight to my scene, whereve it is, the ligth flickers at playtime, randomly.

I set my light to a “important” render mode but this doesn’t solve it. I actually have no other light in my scene than this directional light, so I don’t think it is interefering or something…

Any idea?

Could you please attach a video of the issue in action? Does the issue also reproduce in standalone builds?
Also, to eliminate the possibility of the spotlight being converted to a vertex light you could try the following:

  • Increase the Pixel Light Limit in the Project Settings
  • Switch to Deferred rendering path

If the issue still reproduces, there either might be an issue with the script, or the rendering setup.