Mask with scroll rect doesn't work

Hi,
I was working on the new UI and I used the mask with image component to make my scroll rect, but whatever I did the mask didn’t work, instead it shows me a white picture. Any help, I will be thankful.
Thankyou all

Please look at the included example scenes, masking works quite well currently.

I had the same problem. My problem turned out to be that on Android you need “Use 24-bit Depth Buffer” in the player settings for masking to work.

I had a similar problem as well when I was nesting a masked item inside another control. I had to make the top level control have a mask as well for it to work. So this didn’t work:

Panel (no mask)
Button (mask with image)
Image

But this did, even though the top level mask was just the entire panel:

Panel (mask with a blank image)
Button (mask with image)
Image

Kind of odd.

Hi,
I did what you said, but it still doesn’t work.

Same here, b17. I’m loading a RawImage into a child of a GameObject with an Image and Mask, but the RawImage isn’t being masked at all.

Hello,

I am currently using b19 and I may have run into a similar issue. I have a panel with a ScrollRect and a Mask component that, for a brief period of time, was masking its much wider child panel as expected. Then, for no apparent reason the child panel was no longer being masked. I tried all of the suggestions above to no avail. But, when I attempted to recreate my layout in a fresh empty project I was not able to duplicate the issue. Frustrated, I returned to my current project and now the masking is working once again, without any modifications whatsoever.

I can confirm that Fenyx’s solution makes it work: you have to check “use 24 bit buffer” BUT this only has an effect after you close the project and open it again.

1 Like

Is it possible to make this work without 24bit buffer?

my device gets HOT after 1 minute when 24bit buffer is enabled.

Hi Guys I have same Issue, Mask Script with ScrollRect work on Unity Editor but its not work on iOS Device, I am using Unty 4.6.7p1 and Unity 4.6.6p2. In both version I face same issue