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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
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