Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: hhappak on February 16, 2014, 07:33:19 AM
-
Hi all,
I am developing an app for mobile devices. I however run into all sort of trouble when I am trying to animate panels that have Anchors on them. Since the app is only for mobile devices, I want a way to disable anchors once the app initially adjusted to the device's screen size. Is that possible?
If not, is there a way to disable anchors through script for specific objects?
I found UIWidget.setAnchor(), However when I try it, it tells me that no such method is in UIWidget. Is the documentation outdated there?
-
UIRect has the SetAnchor methods, which is a base class used by both widget and panel.
widget.SetAnchor((Transform)null); will effectively clear the anchoring.