Unity 4.6.1 new UI glitches on Android 5.0

Hi,

These are two screenshots of a game built with Unity 4.6.1 (of course using the new UI) running on a Nexus 5 with Android 5.0 (also reproduced on HTC One M8 GPE with Android 5.0). The screen is composed of UI elements only and should not contain those gray parts. The behavior is random so I can’t tell for sure how to reproduce this. The 2nd screenshot is totally grayed out although it contains the same elements as the first one.

Does anyone have clue how to fix this ?


Are you using masks ?
Have you a camera in the scene ?

Yes there’s a UI Mask element that covers most of the screen. Of course there’s a camera on the scene (orthographic) and the canvas render mode is set to “Screen Space - Camera”.

Try to deactivate your masks, they certainly cause this issue. We had serious issues with masks on android. As far as we know, 4.6.0p1 (and added an active camera to the scene, we’re in overlay) solved ours, but it really looked like these screens.

We removed all ours masks and find workarounds to avoid using it.

@paradizIsCool it works perfectly without the masks. Can you give me ideas for workarounds knowing that I’m using a custom scroll solution for nested list views (scripts that replace the built-in scroll rect element)?

How to fix it is to avoid using the new GUI in Unity 4.6. It’s only been out a month and there’s bound to be loads of glitches in it.

I had this exact problem, and this exact solution worked!
November 2015, and this shitbug is still around. What the hell Unity devs?

1 Like

well hardware issues are hard if not impossible to solve. The new work around would be to use the Rect Mask 2D which doesnt use the stencil buffer.

1 Like