Welcome,
Guest
. Please
login
or
register
.
June 10, 2026, 12:32:21 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIGrid alignment
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIGrid alignment (Read 3482 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?
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: UIGrid alignment
«
Reply #1 on:
March 27, 2013, 01:11:58 PM »
Offset its position by half the width is the easiest.
Logged
jeldrez
Sr. Member
Thank You
-Given: 8
-Receive: 4
Posts: 352
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
»
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIGrid alignment