Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Light of Sight - 2D Dynamic Lighting [Open Source]

Discussion in 'Assets and Asset Store' started by Gamer_Woods, Feb 5, 2015.

  1. Gamer_Woods

    Gamer_Woods

    Joined:
    Jan 31, 2013
    Posts:
    33
    Hi guys, I have developed a Free to use plugin for creating of 2D dynamic lighting.

    Link: https://github.com/f15gdsy/2D-Light-of-Sight-Unity

    Features:
    • Handles any shapes.
    • Event system that lets an object be notified if it gets lit or unlit.
    • Two kinds of shadow generation method available.
    • All features are supported in Unity FREE version.

    Demo:

    Hope it helps :)
    Feel free to use it. Any comments, questions and suggestions are welcome.



     
    Last edited: Feb 5, 2015
  2. Rastoropny

    Rastoropny

    Joined:
    Feb 14, 2015
    Posts:
    2
    Hello, Gamer_Woods!
    Thanks for your LOS system, awesome work. I use fullscreen variation without transparency and stuck with a problem. Is there a way to limit the range of the view smoothly fade to the darkness (attached example screenshot)? I use FREE Unity version. Thanks.
     
  3. Gamer_Woods

    Gamer_Woods

    Joined:
    Jan 31, 2013
    Posts:
    33
    Hi, do you mean the farther away from the character, the it becomes darker?
    I can think of one simple method to achieve this, which is to add a sprite like the one below on top of everything.
    The whiter part is more transparent. The blacker is more opaque.
    Hope it helps :)
     
  4. Rastoropny

    Rastoropny

    Joined:
    Feb 14, 2015
    Posts:
    2
    Gamer_Woods, So simple. Thanks again, it's works for me.
     
unityunity