Hoe can I use lights in 2d sprites if not possible any other solution?
What you need to do is change the material of sprites you have in the scene that you want them to react to light…
First thing you do is create a new material and make sure to set the Shader to Sprites/Diffuse…
Once you made your material, go to the object that you want to apply light to and place the material in the Material Slot in the sprite renderer…
You will see it go dark and that’s where the lights come in, place some spot lights in the scene and make sure your light’s transform in the Z’ axis is greater than 0 to get the light effect.
Thanks alot it worked!
![]()
![]()
![]()
![]()
![]()