Search Issue Tracker

Fixed

Votes

43

Found in

4.6.0b17

Issue ID

636209

Regression

Yes

UI: Nested masks behave incorrectly

UI

-

To reproduce this bug:

1. Open the attached project
2. Open 'MaskingBug' scene
3. It has 3 images with Masks as children of one another and text as a last child
4. Observe the scene
5. The text cannot be seen on b19
6. Open the same scene with b18
7. Notice that text can now be seen in the scene

Comments (17)

  1. theiss

    Feb 27, 2015 21:45

    still waiting. i've got 8 active tickets waiting to be resolved against this bug (and the reversions of workarounds where we could do them back to proper mask stacks). pleeaaaase. i neeeedsss the preciousss!

  2. Pelican_7

    Feb 18, 2015 16:40

    This appears to still be an issue in Unity 5.0.0f1.

  3. theiss

    Feb 17, 2015 15:02

    WOOOOOOOOOHOOOOOOOOOOO!!!!!

    Thanks guys!

  4. Tim-C

    Feb 17, 2015 06:32

    Hi, We tracked this down. Fix coming in a patch release soon. :)

  5. Hannibalov

    Feb 16, 2015 16:49

    Seems this bug is still present in 4.6.2p1

  6. theiss

    Jan 08, 2015 19:41

  7. Jyrroe

    Dec 05, 2014 19:13

    It's frustrating to know that this worked in an older beta version. After some testing, we found out how strange masking is. A single mask in a scene writes 1 to the stencil buffer, which makes sense. A nested second mask then writes 3 to the stencil buffer, which is strange. And finally a 3rd level of nested masks writes 11 into the stencil buffer.

    Any UI.Text or UI.Image components under this 3rd mask will not render, as this issue states, and we're failing to see a pattern in the masks writing 1, 3, and 11 respectively to the stencil buffer. An extra test also indicated that a 4th mask as a child of the 3rd doesn't write anything to the stencil buffer at all (it remains at 11). We really would really appreciate getting this fixed, as we use nested masks in several places in our game menu.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.