Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question 2D Light Behaviour/Intensity Changes Depending on Zoom

Discussion in 'Universal Render Pipeline' started by DME22, Apr 29, 2023.

  1. DME22

    DME22

    Joined:
    May 23, 2016
    Posts:
    2
    Hi all,

    Observed this using URP in 2021.3.4f1.

    The blue-ish lights displayed below are part of a prefab object. Their settings are:
    upload_2023-4-29_20-57-57.png

    Picture 1: Normal Zoom
    The light effect is most noticeable on the bottom left, but a light is being emitted from all four light blue objects in this scene.

    upload_2023-4-29_20-58-32.png

    Picture 2: Zoomed out

    upload_2023-4-29_21-0-9.png

    Picture 2, I think, is more consistent with the intensity being set to 10. It is also how it appears if I adjust the setting inside the prefab and then navigate back to the Scene view. When I press Play or in the Game view, it appears as in Picture 1.

    Could someone elaborate on why the light is behaving in this way? Is there a way to get it to display consistently (either as Picture 2 or Picture 1)?

     
  2. DME22

    DME22

    Joined:
    May 23, 2016
    Posts:
    2
    On further investigation the behaviour is apparently because the light blue lights share a Light Order (Light2d -> Blending -> Light Order) with other lights in the scene (The ambient lighting shown in both pictures). Changing this value renders the lights the same way at all zoom levels.