Search Unity

Problems with Spotlight

Discussion in 'Getting Started' started by Solid68, Dec 9, 2020.

  1. Solid68

    Solid68

    Joined:
    Oct 13, 2020
    Posts:
    4
    Hello forum,

    I'm new to Unity and I'm having lighting issues in my scene. If I walk around in GameView some of the lights switch on and off but I have no idea why ! It´s not related to the position of the light because if I move the light it does not change anything. They are all a copy from the first light. Type is Spotlight and Mode is set to Realtime.
    To start I use the URP Template included in Unity 2020. The Version of Unity is 2020.1.16f1I also generate the lighting manually but nothing change.
    Would be appreciated if someone can help me out of this problem.

    Here you can see the problem


    Thank you in advance
     
  2. Frenchyboy

    Frenchyboy

    Joined:
    Jul 4, 2020
    Posts:
    3
    Wow, really? No answers?
     
  3. hjohnsen

    hjohnsen

    Joined:
    Feb 4, 2018
    Posts:
    67
    The number of visible lights is limited per frame view. This is on your project settings and probably limited to a maximum of 8. When the camera moves in the video, some lights become invisible and then others can be used by the pipeline.
    That limit will probably increased with the deffered path or URP and with the new tile rendering of urp.
     
  4. ahmedsm92

    ahmedsm92

    Joined:
    Jul 30, 2021
    Posts:
    1
    One solution which worked for me, when facing a similar issue, is to select the light render settings to be "important".