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:
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.
I have tried around a little. The issue seems to arrise from overlapping elements. See attached Screenshots:
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:
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.