Search Unity

Problems with Light on UI objetcs

Discussion in 'Global Illumination' started by amandag3, Jun 15, 2019.

  1. amandag3

    amandag3

    Joined:
    Jun 14, 2019
    Posts:
    5
    I need to use light on my scenes and I was playing a little bit to discover which was the best light to use on my game when I realised that I could not use light on my UI objects like images and buttons, at least not in a proper way. In pointlight it seems that the light just don't work it and with the direactional light the image gets all weird, darker that the rest of the scene and I don't why. I'm using the Material Legacy Shaders/Transparent/Diffuse and my Canvas is set to screen space - camera. Any tips of how to solve this?
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Try using UI > Lit shader and see if that fixes your issue. We cannot guarantee that Legacy shaders will work in all scenarios, especially with the newer versions of Unity.