Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: marcg11 on July 14, 2014, 04:09:15 AM

Title: Anchor reposition takes some frames, why?
Post by: marcg11 on July 14, 2014, 04:09:15 AM
Hello, I have some sprites and labels which have the new NGUI anchor system (unified, advanced). The thing is If I change some widget height or width it takes NGUI some frames to reposition all the widgets. Why?

Is there a way to tell NGUI to recalculate this in a sync way?
Title: Re: Anchor reposition takes some frames, why?
Post by: ArenMook on July 15, 2014, 12:14:11 AM
Call UpdateAnchors() if you want it to be immediate.
Title: Re: Anchor reposition takes some frames, why?
Post by: marcg11 on July 15, 2014, 02:20:22 AM
It appears not to be working, I tried calling it on the parent panel, and all its widgets but it's not immediately.