Search Unity

Soft Masking possible?

Discussion in 'UGUI & TextMesh Pro' started by KyleStaves, Feb 11, 2015.

  1. KyleStaves

    KyleStaves

    Joined:
    Nov 4, 2009
    Posts:
    821
    Hey folks! I'm curious if it's possible to make a mask with a soft edge. Any thoughts/tips/pointing-in-the-right-direction would be greatly appreciated!
     
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,689
    The RayCastMask component in the UI Extensions bitbucket repository allows for finer masking using the base image (based on the image, not it's rect) https://bitbucket.org/ddreaper/unity-ui-extensions
    That should give you some hints as to what to look for.
     
  3. Peponidas

    Peponidas

    Joined:
    May 21, 2015
    Posts:
    2
    Hi Simon!

    I'm struggling with the RayCastMask in order to achieve a soft masking on an image (kinda a rounded avatar profile image).

    How is it supposed to be used? It has to be attached to UI/Image? How the image mask is specified? As you can see I'm a bit confused on how it works ;).

    Thanks for your support.