Search Unity

Unity 5.1 UI order bug

Discussion in 'UGUI & TextMesh Pro' started by AMNOD, Jun 13, 2015.

  1. AMNOD

    AMNOD

    Joined:
    Oct 19, 2014
    Posts:
    13
    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
     
  2. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    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.
     
  3. Alima-Studios

    Alima-Studios

    Joined:
    Nov 12, 2014
    Posts:
    78
    same to me , a lot of elements disappear on 5.1 ... I got to roll back to 5.0
     
  4. XSUnity

    XSUnity

    Joined:
    Nov 18, 2012
    Posts:
    18
    We have the same issue,
    I hope that they release some patch before 5.2
     
  5. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Report the bug and maybe they will
     
  6. keedav

    keedav

    Joined:
    Mar 3, 2013
    Posts:
    4
    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.
     
  7. daisySa

    daisySa

    Joined:
    Dec 29, 2011
    Posts:
    341
    Same issue here since upgrading to 5.1.
     
    MrEsquire likes this.
  8. thylaxene

    thylaxene

    Joined:
    Oct 10, 2005
    Posts:
    716
    Ditto here and reported. Very annoying.
     
  9. danilo_lima

    danilo_lima

    Joined:
    Mar 25, 2013
    Posts:
    2
    Same for me.
     
  10. Alexander-M

    Alexander-M

    Joined:
    Oct 21, 2013
    Posts:
    8
    Last edited: Jun 19, 2015
  11. Ronnie-Grahn

    Ronnie-Grahn

    Joined:
    Feb 22, 2015
    Posts:
    5
    Same here when going from 5.0.x to 5.1.Will report the bug.
     
  12. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    I believe it's fixed in 5.1.1p1
    Make sure to check the latest patch before reporting.
     
  13. Gamba

    Gamba

    Joined:
    Feb 8, 2015
    Posts:
    29
    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.
     
  14. Alexander-M

    Alexander-M

    Joined:
    Oct 21, 2013
    Posts:
    8
    Hey Gamba, 4.6.6p3 actually fixed my problems.
     
  15. Synthezator

    Synthezator

    Joined:
    Sep 25, 2013
    Posts:
    2
    Has anyone reported this bug? Where can I vote for it?
     
  16. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Have you tried the 5.1.1p1 or 4.6.6p3?
     
  17. Synthezator

    Synthezator

    Joined:
    Sep 25, 2013
    Posts:
    2
    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).
     
  18. ProtonOne

    ProtonOne

    Joined:
    Mar 8, 2008
    Posts:
    406
    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.
     
  19. gotwig

    gotwig

    Joined:
    Jul 3, 2015
    Posts:
    1
    Im still affected by this and had to downgrade to 5.0, please fix!
     
  20. phil-Unity

    phil-Unity

    Unity UI Lead Developer

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

    Poelam

    Joined:
    Aug 29, 2013
    Posts:
    5
    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.
     
    Last edited: Jul 15, 2015
  22. makeshiftwings

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
    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?
     
  23. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    yes please do
     
  24. Natrem

    Natrem

    Joined:
    Feb 24, 2015
    Posts:
    31
  25. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Is your issue the hierarchy randomly rearranging itself, or UI not rendering in the order it is arranged in hierarchy?
     
  26. phil-Unity

    phil-Unity

    Unity UI Lead Developer

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

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
    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. :p
     
  28. Natrem

    Natrem

    Joined:
    Feb 24, 2015
    Posts:
    31
    Okay, it makes sense. I thought it was also concerning non-root canvases.
     
  29. phil-Unity

    phil-Unity

    Unity UI Lead Developer

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