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

Problems while making 2D lighting

Discussion in '2D' started by JimShute, Mar 23, 2014.

  1. JimShute

    JimShute

    Joined:
    Mar 23, 2014
    Posts:
    1
    Hello lads
    I am trying to make 2D lighting by using unity3d. But the sprite seems transparent while add a background image inside. So the light sources don't take any effect on it. I wonder who knows how to solve the problem. They say Unity doesn't support 2D lighting. Thanks!
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    There's no such thing as "2D lighting", it's just lighting and works the same as every other object. If you want an object to use dynamic lighting then you need to use a shader that supports lighting.

    --Eric
     
  3. Phyxice

    Phyxice

    Joined:
    Mar 15, 2014
    Posts:
    3
    Create a new material and set it to Sprite/Diffuse

    Apply it to your sprite

    The sprite will now accept lighting :)