Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: kalledemos on February 06, 2014, 10:21:41 PM
-
Is there a way to set a scroll view to be a specific width? I need it to fill a portion of the bottom of the screen regardless of the aspect ratio.
-
Anchor the scroll view's panel, or just set its UIPanel.baseClipRegion
-
Anchoring it seems to work at the start, but when I try to move it at runtime its contents get off centered.
-
Ok I just used UIStretch. It seems to work pretty well with UIAnchor to keep it at relative position and width.
-
Don't use UIAnchor and UIStretch. All panels and widgets have "Anchors" section that you can use instead.
Unless you're on an older version of NGUI.
-
Do those anchors only run once at initialization, allowing them to be freely moved afterwards?
-
New anchoring system is persistent. If something is anchored, you can't move it unless you remove the anchor. However tweens still work as expected even if the object is anchored.