Search Unity

Resolved Multiple Spotlights: One spotlight is turning off when the other is pointing at same object.

Discussion in 'Global Illumination' started by Akura, Mar 5, 2023.

  1. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    Hi im using Unity 2021.3.18f1 with a URP Template for a VR Project (Oculus Quest2).

    The problem:
    Everything works well as long as the fireplace spotlight is disabled.
    When i turn on the fireplace spotlight and point the flashlight towards the fireplace, the spotlight of the fireplace is turned off.

    What i have:
    I have 2 objects, a flashlight and a fireplace. Both have 1 spotlight.

    Demonstration:


    The Lightcomponents:

    Fireplace:


    Flashlight:
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Akura likes this.
  3. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    Wow thanks for this amazing source! I will give it a try when im at home and let you know.
     
    kristijonas_unity likes this.
  4. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    Perfect! I just adjusted the "Per Object Limit" from 1 to 2 in the URP Asset and now everything works! Thank you very much!
     
    kristijonas_unity likes this.