Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Creating a generic UI glowing effect.

Discussion in 'Image Effects' started by Leos-Clockworks, Apr 21, 2021.

  1. Leos-Clockworks

    Leos-Clockworks

    Joined:
    Oct 27, 2017
    Posts:
    12
    I've been trying to make a generic glowing effect that will work on any type of image ill throw it on.
    But it turned out to be more problematic that I hoped.

    *I am working with the HDRP on Unity 2019.4.20f.

    From what I know the classic way is having a sprite and an emission map that will tell what areas should be glowing. But I don't want to make one of each sprite, if I have lets say 50+ its bit cumbersome.

    Another option I saw is by using Unity's Outline or Shadow script, but it doesn't have that glow effect, makes it mostly look blurry.

    What seemed the best option was making a shader that creates the glow effect on a certain sprite, and if that works turn it into a generic one. So something like passing in runtime a sprite to the shader and creating a material for the Image component and have it glow.

    Yet, I am sure this is over thinking and there must be a better way to do this.

    Any help would be much apricated.
    Thanks
     
unityunity