I'm also having some difficulty spacing buttons evenly (and horizontally) across the screen. I'm struggling with the position of the very first button. If I use UIAnchor to anchor this button to the left side of the screen, the button is halfway off of the screen -- I'm guessing that this is because the button's "internal anchor point" is in the center. Since the button is sized with a UIStretch to be a percentage of the screen width, I don't simply want to offset the button by a fixed pixel width (as in the anchors example), because this will complicate changing the button width (if I ever want to do so), and will also mess with resolution independence. What I really want to do is to either set a new "internal anchor point", or offset the button by half of its width (whatever that may be). I could copy and modify UIStretch (to create a "UITranslate"), but I'd rather stick with a built-in solution, if one exists.
Then for each subsequent button, I would use the previous button as an anchor point, but each of these buttons will also need an offset of half their width. The reasoning behind doing this is that it will ensure that the button positions remain correct if I resize any given button (also providing resolution independence). If my thinking on this is more complicated than it needs to be, please let me know.
Thanks for your help -- loving NGUI so far.
-Kevin
Edit: Anchoring each button to the previous button doesn't work, as UIButton isn't actually a widget. Looks like I will need to anchor each button to the "Background" sprite of each previous button.
Another Edit: I'm having more trouble with each individual button. If I resize the button's background using UIStretch, the button's collider doesn't resize to match. How can I use UIStretch to modify the button image and the collider at the same time?