Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: frede on November 03, 2014, 08:59:20 AM
-
I have some sprites that are relative anchored to root panel.
Then i have some other sprites that are relative anchored to the first sprites.
How can make sure that the position of the first sprites are always updated before the position of the second set of sprites?
-
This are done automatically. NGUI's widgets always update the target object before updating themselves.
-
Ok. It just seems like it takes several updates to place the widgets correctly after i change the aspect ratio. It is like they move a tiny bit closer to where they are supposed to be anchored each time i hit play, or resize the window a bit.
You say that targets are always updated first. What if I by mistake had made some kind of loop in anchors? What would happen then?
I am using ngui pro 3.7.4 btw.
-
Execute is set to OnEnable btw.
If i change it to update it seems to place the widgets correctly, it is just strange that i need several iterations before they are placed correctly
-
I solved they problem.
I had only set 3 of the anchors on some of the widgets.
Ty for the time though :D