Search Unity

How to reflect Point Light2D to uGUI

Discussion in 'Universal Render Pipeline' started by kenzen0, Jun 22, 2021.

  1. kenzen0

    kenzen0

    Joined:
    Sep 17, 2018
    Posts:
    16
    I've installed URP in Unity.
    I've finished the basic setup and can cast shadows on normal objects, but I can't do the same for the UI.

    Packages/com.unity.render-pipelines.universal/Runtime/Materials/Sprite-Lit-Default.mat

    I set the material above to the Image in uGUI

    When I light it up in the Scene, it looks good as shown in the upper left of the image, but when I check it in the Game screen, the Sprite-Lit-Default.mat material doesn't seem to be reflected.

    I'm not very good at materials and shaders, so I don't know what to do.
    I'm not very good with materials and shaders.
    Thank you very much.

    9f589d7f98ef2a394e0f824019b0c495.png