Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Vesuvian on June 18, 2014, 11:50:51 AM
-
Hey guys
This is probably an easy one. At runtime we instantiate UIRect prefabs and set anchors, transform, depth and size. It looks like there is an initial frame where the rect occupies the full screen, producing a "flicker" effect.
I assume that the parent orients the rect correctly on the following Update call. I'm wondering if there's a way to schedule an immediate re-orientation?
Thanks,
Ves
-
UIRect has the UpdateAnchors() function. Call it to immediately update all calculated values.
-
Nice and easy, works perfectly. Thanks Aren!