I'm working on a project in unity 5.0 and when upgraded to unity 5.1 and the order of the UI elements in the hierarchy isn't working fine for me. Some elements get behind their parent and they appear in the correct order when duplicating the children and disabling the original child. I have no idea how this works but that's the solution I've figured out so far
Please report this bug. I've isolated and reported a similar issue, they've replied that it was fixed and will be available in 5.2. Maybe if they'll get more reports of this issue, they'll escalate the priority and the fix will be released sooner in a patch release.
I have similar issues after upgrading from Unity 4.6.4 to 4.6.6. The order of certain UI elements randomly won't follow their place in the hierarchy now. I'm trying to isolate it in a small project now.
Same for me on 4.6.5 and 4.6.6 releases. Will try 4.6.6p3 soon. P.S. I think it is related to new batching algorithm: Drawcalls go up with the latest version of Unity 4.6 (4.6.4p2)
Hey Alexander, it happens in 4.6.6p3 as well so don't bother upgrading. Hopefully they will put out a 4.6x patch for this as well.
I have tried 5.1.1p1, but there were other bugs with Linq. I noticed UI bugs only in Editor window (but not in the Game view and on device).
The UI order bug is still broken in 5.1.1p1. I've rolled my project back to 5.0. 5.1 is not ready for production if you use Unity UI. Edit: Just noticed p2 is out toay. But I'm sticking with 5.0 for now.
so all the bugs i know about regarding this were fixed in 5.1.1p1 and 4.6.6p3 so if it still happens we need bug reports.
This bug is not fixed even in 5.1.1p3. Are there any bug tracking # created? I just downloaded 5.1.1p4 and yes, the bug is still there.
I've been having all kinds of bugs with the hierarchy rearranging itself and I assumed it was known, but I guess it's not? Unity's said it's been "fixed" multiple times but then people re-report it over and over. Still happening in 5.2f3. Should I submit another bug report on this?
I assume it is the same bug: http://issuetracker.unity3d.com/iss...doesnt-depend-on-their-positions-in-hierarchy Why "Won't fix"?
Is your issue the hierarchy randomly rearranging itself, or UI not rendering in the order it is arranged in hierarchy?
That one is wont fix due to lack of internal data. At the root level of the hierarchy the order is only known in the Editor. Once you build we have no record of what is in what order. Without a fundamental system rewrite/ a lot of overhead there is no way to know the order. The suggested fix was to use the sort order for root canvas's
The hierarchy rearranges itself. I did submit another bug with a repro project and they said they'd pass it along to the devs, so here's hoping. I'm just kind of surprised that no one else noticed it; I find it super annoying.
Nope if nested canvas's dont order via the hierarchy (even among other graphics) then that's a different bug then the one reported and should be reported as that should work properly.