Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: GeorgeR on March 27, 2013, 12:50:00 AM

Title: UIGrid alignment
Post by: GeorgeR on March 27, 2013, 12:50:00 AM
Right now item's are added from left to right (if its horizontal), from the origin. I'm trying to have them add from the center out, so that it doesn't matter if there's 1 or 10 items - they're always in the middle of the screen. How can I do that?
Title: Re: UIGrid alignment
Post by: Nicki on March 27, 2013, 01:11:58 PM
Offset its position by half the width is the easiest. ;)
Title: Re: UIGrid alignment
Post by: jeldrez on April 26, 2013, 08:55:44 AM
But should be a way to select what alignment do you want: Left - Center - Right.
Now I want to align to the right and there's no way.


EDIT:
I just flip the UIGRID parent and flip otherside the child buttons and it works the "right" alignment.