Author Topic: UIGrid alignment  (Read 3479 times)

GeorgeR

  • Guest
UIGrid alignment
« 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?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UIGrid alignment
« Reply #1 on: March 27, 2013, 01:11:58 PM »
Offset its position by half the width is the easiest. ;)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: UIGrid alignment
« Reply #2 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.
« Last Edit: April 26, 2013, 09:02:06 AM by jeldrez »