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. Dismiss Notice
Unity's version control component has been upgraded to Plastic SCM.

Feedback [Feature Request] Alpha-sensitive 2D Masks

Discussion in 'Unity Collaborate' started by HuldaGnodima, Mar 16, 2020.

  1. HuldaGnodima

    HuldaGnodima

    Joined:
    Oct 10, 2016
    Posts:
    106
    Hello!

    The masks in Unity are super-useful. I'm using the 2D-mask feature to show underwater landscapes in my project like so:




    However, Unity masks only offers "hard edges" on their masks. What I mean with "hard edges" is that the mask-edges are sharp, even if the used mask-image has soft edges. For example in the effect above I'm using the soft-edged mask below:


    Even if the mask-image has soft edges as in the image above (and a developer alters the alpha-settings in Unity) the resulting effect will always be sharp.
    From what I've understood this is because Unity's system uses bit-masking for 2D masks. If Unity allowed for alpha-sensitivity in masks the effect in the gif would look like this:


    There are some paid assets that allow for soft masks in the asset store, however, these aren't integrated into Unity's own mask-system and can therefore be tricky to use (especially in complex systems).

    For this reason I'm making a formal request to the Unity team to add Alpha-sensitive 2D-masks. The Unity system is already robust and great, and I think soft masks would make Unity even stronger and versatile. Alpha-sensitive 2D masks could become great assets for developers and result in improved projects.

    Thank you!
     
    Last edited: Mar 16, 2020
    konsic likes this.
  2. cameronsun

    cameronsun

    Unity Technologies

    Joined:
    Jan 10, 2020
    Posts:
    19
    Hey there! Just wanted to say that your game is looking great so far! Love the art style.

    Unfortunately, I don't think that this is the right subforum for this feedback. You might wanna try posting in the 2D-specific subforum. This current subforum is for the Collaborate package.

    Best,
    Cameron
     
  3. HuldaGnodima

    HuldaGnodima

    Joined:
    Oct 10, 2016
    Posts:
    106
    Hi Cameron,

    Thank you for your encouraging words! I'm very glad you like what I'm making.
    And thanks for sending the link to the 2D-subforum. I will post my feature request there right away.

    I hope your Monday will be great!

    Best wishes
    Hulda
     
    cameronsun likes this.