Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: mathiassoeholm on June 19, 2014, 08:26:14 AM
-
I just updated from NGUI 3.6.0 to 3.6.4b.
Now I have several places where anchors need a frame before they refresh.
In the .gif below, the funny spiral-like icon is anchored to the label that says "1280" and set to OnUpdate.
That label is updated in the first frame, so it changes it size.
I'm guessing the anchor gets updated before the size is changed, and that's why it doesn't anchor to the right position until the next frame.
It works if I manually call UpdateAnchors, but that seems a bit like a hotfix.
(https://dl.dropboxusercontent.com/u/4375689/Web/JumpGif.gif)
Did anything change from 3.6.0 to 3.6.4 that could cause this?
-
I don't think anything changed in regards to this. You've likely simply encountered an order of execution issue. Before it was one being updated first, and now it's the other.
-
Alright, I guess I'll have to manually update the anchors then