UI breaking on OSX

Hi,
After putting in new UI in place we noticed that sometimes the following issue will happens on mac:

Sometimes setting the resolution to native will fix the problem but not always.
Any ideas how can we fix it or why it’s happening?

Edit: The UI is fine in the scene view and it seems to work in certain resolutions (not maximised in the editor)

Hi, has anyone seen anything like this or have any ideas that could help?

Cheers,
Chris

Looks like it might be z-testing (or stencil-testing) against garbage?

The default UI shaders z-test. If you’re using ‘Screen Space - Camera’ mode on top of 3D content, make sure your UI camera is clearing Z?

How do you do that with the 4.6 UI?
Previously I’d have had a camera for UI, now I’ve just got the canvas and it renders the UI without needing to set a camera.

I should note that our canvases are all set to Screen Space - Overlay.

Hi, have you raised a bug so we can look into this?

Not yet, we’re a bit busy ATM and this only happens on our procedurally populated screens so I can’t nicely package up something that shows the errors, but it does it every time on a selection of our screens (and only on OSX).

I’ve sent a bug report it’s “Case 654623”

Hi Tim,

I’ve got a prefab that exhibits this behaviour in an empty scene.
we’ve got the Mac set to ‘Maximise on Play’ and resizing seems to cause it to render correctly.

Here’s the office mac’s system specs, but we’ve had it reported that it doesn’t works on other macs too.
Also, we’ve been told that playing at the Mac’s native resolution sometimes fixes it.

Is there a different way you’d like me to upload this prefab? As a project? Is there some way for me to attach it to a given case number?

Thanks,
Chris

1880652–120947–TESTGUI.rar (27.5 KB)

The bug just says “see example in thread” and links to this thread so dont worry about uploading it we should be able to get it from here :slight_smile: