unity-game-enginelighting

How to fix not appearing lights in Unity?


Developing a simple zombie game with day-night cycle. So, for the player to handle the night, i am making a flashlight. Modeled it, and i need a real Unity light to make it a flashlight (but it's anyways flashlight, but broken..?). The light works neither in Scene or Game window. Here i'll show you some screenshots (and a test video): Scene view Game view

I tried clearing cache, as i found on Internet, but it only worked until i switched tabs.

EDIT for @BugFinder [30.01.2023]

Light component for the flashlight:

Light component settings

Switching between Point and Spot light isn't doing anything.


Solution

  • Your light mode is currently set to Baked. This instructs Unity to prerender a static light when you press bake lighting in the lighting menu. Obviously you don't want something static for your flashlight, so change the mode to Realtime.