Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: roxioam on July 01, 2015, 05:04:15 AM

Title: UIGrid anchoring to widget sides
Post by: roxioam on July 01, 2015, 05:04:15 AM
Hi,

I have the bottom status bar inside my application. I used UIGrid to locate buttons on the status bar. When I resize my application, UIGrid is anchoring to the center of the status bar widget and all placed buttons showed in the center of the status bar. How can I anchor UIGrid to the left and right side of me status bar widget?
Title: Re: UIGrid anchoring to widget sides
Post by: ArenMook on July 02, 2015, 08:53:57 PM
UIGrid simply repositions its children. It has no anchoring logic, as it's not a widget. If you want it to be anchored, create a UIWidget container (ALT+SHIFT+W), set its proper pivot point, anchor it, then move your grid to be a child of this widget.