Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: JK on May 22, 2014, 03:24:13 PM

Title: Anchor to right edge of a table
Post by: JK on May 22, 2014, 03:24:13 PM
Is it possible to anchor a sprite to the right edge of a table? The table is dynamically populated and I'd like to book end the table with some sprites, but the table seems to appear as a point rather than a rectangle to the anchoring system.
Title: Re: Anchor to right edge of a table
Post by: ArenMook on May 22, 2014, 04:17:47 PM
A table script repositions children underneath. You can create an invisible widget (ALT+SHIFT+W) and place UIWrapContents on it, targeting the table. When you repopulate your table, execute the wrap contents script as well so that it resizes the widget. Anchor things to this widget.