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. Dismiss Notice

2D light is acting weird.

Discussion in 'Universal Render Pipeline' started by kshitijKulkarni, May 29, 2021.

  1. kshitijKulkarni

    kshitijKulkarni

    Joined:
    Mar 25, 2020
    Posts:
    14
    I have a project using the URP. It was 100% fine before I updated unity. Once I went from the 2020.1 to 2021.1, my project kinda broke.

    Google's external dependency manager was removed, and the URP package was deleted. I had to reinstall the package. Everything got resolved, except the Lights.

    URP had updated to 11.0.0. the first ability I lost was that the 2D lights refused to behave normally with the camera in the perspective projection, which I was using for a parallax effect. Then, I changed everything, and put my camera into OrthoProjection, rewrote my parallax scripts, and setup everything the way you are supposed to. My scene is now truly setup as a 2D scene. My lights are placed on a plain sprite. The light is inverted on the Y axis. If the position of the light is at -7 on the Y axis, the actual light effect is present on 7 on the Y axis. I have no idea what my mistake is. All I know is that my project is broken, and I need help soon.

    I have 17 scenes. 15 Scenes were created before my project broke. No. 16 and 17 were created after I fixed my broken project. The issue persists in scene 16 and 17 only, even though the other scenes use the same component.

    I have attached a few pictures of the issue: LIGHT !.png
    Screenshot 2021-05-29 224211.png Screenshot 2021-05-29 224251.png LIGHT !.png Screenshot 2021-05-29 224211.png Screenshot 2021-05-29 224251.png

    Other scenes work fine:

    Screenshot 2021-05-29 225258.png
     
    Last edited: May 29, 2021
  2. kshitijKulkarni

    kshitijKulkarni

    Joined:
    Mar 25, 2020
    Posts:
    14
    Update: IT works fine if I enable postprocessing on my camera. The weird thing is that I have no Volume in the scene. Just enabling the postprocessing does the job