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

Question Is there a way to change the color of the darkness when using 2d lighting?

Discussion in '2D' started by TaylorAnderson, Nov 4, 2022.

  1. TaylorAnderson

    TaylorAnderson

    Joined:
    Jul 28, 2012
    Posts:
    10
    Basically what the question says -- the darkness is pure black, but I'd like to tint it slightly blue. But it seems like the only color to change is the color of the lights, not the darkness itself.

    If anyone would be able to point me in the right direction this, it'd be appreciated!

    Thanks,
    Taylor Anderson
     
  2. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    put an ambient global light with dark blue
     
  3. TaylorAnderson

    TaylorAnderson

    Joined:
    Jul 28, 2012
    Posts:
    10
    What do you mean by this? If i change the color of the global light to dark blue, nothing happens, because I'm not using the light from a global light. And even when I turn up the intensity, the *light* is tinted that color, not the darkness.

    I'm not sure what you mean by an ambient light :/
     
  4. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    https://docs.unity3d.com/Manual/lighting-ambient-light.html

    if you make this dark blue all your non lit scene will look dark blue
     
  5. TaylorAnderson

    TaylorAnderson

    Joined:
    Jul 28, 2012
    Posts:
    10