Search Issue Tracker
Fixed in 5.4.0
Votes
9
Found in
5.2.0f3
Issue ID
726249
Regression
No
UI elements with inverted scale become invisible when a part of it goes out of RectMask2D bounds
Steps to reproduce:
1. Open the attached project (rect_mask_test.zip)
2. Open 'Test' scene
3. Notice it has a red image created as a child of white image with a 'Rect Mask 2D' component. Also notice that the red image is scaled to -0.5 on Y axis.
4. Move the red image down until a part of it goes out of the rect mask bounds
5. Notice the red image becomes invisible (Same happens with buttons, input fields, etc)
Note: The image only disappears if it goes out of the rect mask on the same axis it has an inverted scale (that is, if Y scale is inverted, you have to move the red image along Y axis to see it disappear, if X scale is inverted - you have to move it along X axis).
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
- “ReferenceError: Pointer_stringify is not defined” error is thrown when downloading a file
- GameObjects are not rendered when using a fragment shader with RWStructuredBuffer in URP
gabriellp21
Oct 19, 2016 04:08
Still persist in 5.4.1p4.
karl_jones
Nov 20, 2015 17:16
This is now fixed and will be available in the future.
The fix is very small and to the open-source side of the UI framework so if you need it now then you can download the framework from https://bitbucket.org/Unity-Technologies/ui and modify the file MaskableGraphic.cs.
Change line 93 from :
var cull = !validRect || !clipRect.Overlaps(canvasRect);
to:
var cull = !validRect || !clipRect.Overlaps(canvasRect, true);
Immu
Nov 07, 2015 14:00
Still present in 5.2.2.p2