Search Issue Tracker

Fixed in 4.6.X

Votes

2

Found in

4.6.0b17

Issue ID

633152

Regression

No

UI: layout isn't refreshed after children reordering in runtime

UI

-

To reproduce:
1. Open attached project
2. Open Test scene
3. Press Play
4. Press Reorder button
5. Notice Panel Red is reordered as Last Sibling in Hierarchy, but order in game view doesn't change
6. Disable and enable Panel game object
7. Notice that now objects are reordered correctly in game view

Comments (2)

  1. PhobicGunner

    Sep 25, 2014 17:35

    I'm running into this issue as well. Either SetSiblingIndex needs to automatically invalidate the UI, OR there should be a way to manually call SetDirty instead of the disable/enable workaround.

  2. Trentish

    Sep 24, 2014 00:29

    We're also running into this issue. The base class has SetDirty(), but it's protected.

    Workaround: In code, set .enable to false and immediately back to true.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.