Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Draw-Order issues since 5.1.0f3

Discussion in 'UGUI & TextMesh Pro' started by FlashMuller, Jun 22, 2015.

  1. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    Hey guys,
    I have (had) my UI-System up and running. But since the update to 5.1.0f3 I am having weird draw order (?) issues:
    DrawOrder.png
    The image is being rendered as being "behind" the slightly transparent button. The "offset" of the image is actually the image being moved towards the camera for presentation purpose. Issue is the same when looking from the other side. See bottom right of the image for scene hierarchy.
    When moving the image out of the hierarchy and below its parent, the draw order is working correctly.

    Any ideas? Thanks!
     
  2. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    I have tried around a little. The issue seems to arrise from overlapping elements. See attached Screenshots:
    OverlayError.jpg
    Some observations:
    • None of my scripts works with drawing orders.
    • The issue takes transparency "into account". So: Deactivating the red button square of the top (image component of button) will draw the bottom button correct again, until the first opaque pixel of the red cars touch the bottom button again:
    • OverlayError_PixelPerfect_2.jpg
    • There doesn't appear to be a system regarding which elements create or receive the error. Button A corrupts Button B; Button C corrupts button A but Button B doesn't do anything (and so on).
    • The change in draw order is also visible in the editor view, but only if the game is running.
     
  3. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    I noticed the same issue. It comes and goes when I scroll through my UI. i.e. as it moves some things jump behind and in front of others.
     
  4. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    I suppose you don't have an solution? Any further Observation?
     
  5. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Get 5.1.1p1 when it comes out should resolve the issue
     
  6. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    Thanks!
    Any Timeline on that new release?
     
  7. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
  8. Gamba

    Gamba

    Joined:
    Feb 8, 2015
    Posts:
    29
    Hi Phil,

    Do you know if there are any patch builds of 4.6x that have this fix in? I have similar problems with draw order on 4.6.6p3 and 4.6.5p4.

    Also, what's the IssueID?

    Thanks.
     
    Last edited: Jun 24, 2015
  9. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    then you must be dealing with a different issue then the ones i know about. the ordering issues that was fixed in 5.1.1p1 is the same fix in 4.6.6p3