Search Unity

UI breaking on OSX

Discussion in 'UGUI & TextMesh Pro' started by skedra, Dec 5, 2014.

  1. skedra

    skedra

    Joined:
    Nov 30, 2012
    Posts:
    5
    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)
     
    Last edited: Dec 5, 2014
  2. Chris_TerraTech

    Chris_TerraTech

    Joined:
    Sep 16, 2014
    Posts:
    30
    Hi, has anyone seen anything like this or have any ideas that could help?

    Cheers,
    Chris
     
  3. bluescrn

    bluescrn

    Joined:
    Feb 25, 2013
    Posts:
    642
    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?
     
  4. Chris_TerraTech

    Chris_TerraTech

    Joined:
    Sep 16, 2014
    Posts:
    30
    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.
     
  5. Chris_TerraTech

    Chris_TerraTech

    Joined:
    Sep 16, 2014
    Posts:
    30
    I should note that our canvases are all set to Screen Space - Overlay.
     
  6. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Hi, have you raised a bug so we can look into this?
     
  7. Chris_TerraTech

    Chris_TerraTech

    Joined:
    Sep 16, 2014
    Posts:
    30
    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).
     
  8. skedra

    skedra

    Joined:
    Nov 30, 2012
    Posts:
    5
    I've sent a bug report it's "Case 654623"
     
  9. Chris_TerraTech

    Chris_TerraTech

    Joined:
    Sep 16, 2014
    Posts:
    30
    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
     

    Attached Files:

  10. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    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 :)