Rect Mask 2D, content size fitter bug

I found that in 2017.2 the Rect Mask 2D stops masking Images when placed in a scroller with a content size fitter on the contents gameobject.

Works great without it but when you add that it stops masking images and just culls then when they are outside of the rect. Still works with TextMeshPro labels however.

If this works fine in 2017.1, but stops working in 2017.2, then you most likely found a regression.

In this case, I recommend to submit a bug-report following the advice in this document.

Using the bug-reporter seems to be an important step, because it makes sure the report is in Unity Technologies bug-tracking pipeline and has to be processed at some point. Using the forum is often used to add to a little more attention to a bug-report, but does not replace submitting the bug-report.

It’s from advantage to attach a project to the bug-report that UT can use to reproduce the issue and test their fix against. The easier an issue can be reproduced by QA, the more likely it is to get forwarded to a developer, who might or might not work on a bug-fix for that at some point.

After you submitted the bug-report, you receive a confirmation email with a Case number. UT often asks us to post the Case number in the forum thread, which allows them to find that bug-report if they look at your post.

Following these steps will increase the chance that UT is looking at your issue tremendously.

Yeah was working in 2017.1. I’ll make an example project and submit a bug tonight. Thanks

1 Like

I actually found the reason for the bug. Didn’t submit it though since I also found that it was fixed in 2017.3 beta. However, seems that RectMask2D uses the latest activated canvas. So by toggling the canvas I wanted on setup it started working. Anyway, is fixed in 2017.3 beta so disregard this post.