Search Issue Tracker

Fixed in 5.3.0

Votes

5

Found in

5.2.0f2

Issue ID

723062

Regression

No

RectMask2D is not properly clipping/unclipping objects when an objects transformation is modified

UI

-

To reproduce:
1. Open "Example.unity" scene within the Editor.
2. Press "Play".
3. Set the Scene window's Shading Mode to "Wireframe" so that we can see when the text objects are culled/unculled.
4. Press the "Add Entry" button around 16 times while watching the Scene window
5. Recycled items within the list are not being properly culled/unculled as items are moved from the bottom to the top of the list again

Comments (7)

  1. youbek123

    Mar 10, 2019 17:58

    Same in 2019.1.0b4,

    But did some trick, by default I disabled RectMask2D, did custom script that enables RectMask2D in start. Now it works like a charm!

  2. TheMasonX

    Nov 18, 2016 01:44

    I'm getting an issue with the RectMask2D when using it with a world space canvas when the object is rotated: https://gyazo.com/bf1ace04ae50929133a3619b9a812803

    It's completely fine off, but on leads to clipping when the rotation changes, particularly if the x and y are positive (at least when the object is towards the lower left, so it's rotated to look at the camera)

  3. Maisey

    May 16, 2016 09:12

    I'm running 5.3.4f and this is not working even the slightest...

    1. Add image as child to canvas.
    2. Add RectMask2D to Canvas (clipping works).
    3. Disable RectMask2D (still clipping <---. Disable/Enable of gameObject is needed to refresh clipping)

    In some scenes with a lot of children the clipping can't be disabled at all, even with above "hack-fix".

    Please fix it.

  4. Kurt-Dekker

    Nov 02, 2015 19:12

    I have another (very tiny) reproduction sample for this bug:

    http://s000.tinyupload.com/?file_id=70519799201273629607

    This was found running Unity 5.2.2f1

  5. vidra

    Oct 14, 2015 18:56

    For me it is similar clipping bug.
    I have a RectMask2D, ScrollRect as a Child, Viewport as it's child and container for it's child.
    In the container there is is a 2d grid of Images.

    Everything works fine if the RectMask2D is turned on.
    It doesn't properly unclip when you disable it.
    It starts to work again if you turn it on.

  6. GXMark

    Oct 02, 2015 13:47

    New UI Widgets is having this issue to regarding this masking problem. This bug still exists in 5.2.1p2. Seems like it works in build mode though.

  7. Pencr

    Sep 17, 2015 08:38

    It sounds like a bug we are experiencing.

    A RectTransform + RectMask2D with a bunch of Images as children.
    When we fold the containing RectTransform, the clipping area doesn't get updated and the images are still visible. If we manually move the object in the Editor, the clipping area is updated and the images disappear.

    My guess is, changes of width/height don't trigger clipping area refresh, only movement. Definitely a bug.

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.