Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

New 2D lights not working in game(Solved)

Discussion in '2D' started by Sejuru, Aug 11, 2019.

  1. Sejuru

    Sejuru

    Joined:
    Nov 26, 2018
    Posts:
    14
    Hi, Im trying to work right now with the new 2D lights added to unity in this last version with the LWRP RP package and the Shader Graph package, I've created the 2D pipe renderer and used it in the project graphics settings. I can use the Lights perfectly in the scene view but they are not working in the main camera preview or game screen, just like it's shown in the picture, I'm also working with the new 2D Shader graph, the material of the bigpinkball has a 2D Renderer Sprite Lit Graph Shader. What can I do to make the lights work in game?

    2Dlights.PNG LWRP.PNG
     
  2. Sejuru

    Sejuru

    Joined:
    Nov 26, 2018
    Posts:
    14
    Solved it by changing the z value of the point lights, I just noticed they were like -25 and the camera was on 1