Support => NGUI 3 Support => Topic started by: timsk on April 18, 2014, 01:58:51 PM
Title: [NGUI 3.5.5] UIAnchor OnScreenSizeChanged
Post by: timsk on April 18, 2014, 01:58:51 PM
Hi,
We are making good use of the new anchoring system but are running into performance issues.
90% of our anchored widgets only need to update their anchors when the screen size changes. I'm going to be adding an option to UIAnchor to only update when it receives OnScreenSizeChanged from Unity. Before I start doing this, are there any reasons why this is not an option already? Are there any pitfalls I might run into?
I just want to be careful, as I'm going to be making a big change to how anchors behave at the root class (UIRect), so any issues will affect everything in the UI.
Thanks.
Title: Re: [NGUI 3.5.5] UIAnchor OnScreenSizeChanged
Post by: ArenMook on April 18, 2014, 05:16:22 PM
No need to modify anything. Use this helper script -- it's far easier.