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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

2D Lights with Canvas

Discussion in '2D' started by tildebox, Feb 8, 2021.

  1. tildebox

    tildebox

    Joined:
    Nov 6, 2018
    Posts:
    38
    Hi, I have a 2020.1.1 2D "Universal Render Pipeline" project.

    I add 2D lights to the scene like "Point Light 2D" and they work.

    But that's not what I want. I wanna use 2D lights with my Canvas (Screen Space - Overlay)!

    If I add 2D lights to the canvas they don't work.

    Do I have to activate something in the settings?
     
    Last edited: Feb 8, 2021
  2. RevengerWizard

    RevengerWizard

    Joined:
    Feb 15, 2020
    Posts:
    15
    Just add to the UI Images the Sprite Lit Material. Don't know if works with Overlay Screen Space, but with Camera ScreenSpace works well.
    Cheers.
     
    vishwajeetgautam999 likes this.
  3. vishwajeetgautam999

    vishwajeetgautam999

    Joined:
    Jun 30, 2021
    Posts:
    2
    Thank you RevengerWizard it worked!
     
  4. Posey50

    Posey50

    Joined:
    Sep 22, 2022
    Posts:
    1
    Hello, i don't find this Sprite Lit Material, where is it and where should i put it in unity exactly ?