Jump to content

Anchor Group Settings Causing Error


jjwallace
 Share

Recommended Posts

Hmmm.  Well i would really like to place a few buttons and some text fields inside a group and align it to the right.  Essential making a nice GUI, i am trying to find the best method to do this.  I am guessing to align a group you must just subtract its width and then set its x to the right side.  Interesting.

Link to comment
Share on other sites

If you need it to be right-aligned then you could use a negative offset for its children.

Group children are positioned relative to the Group coordinates. So if you had a few buttons that were 100px wide, and position them at x: -100 within the Group, then you could position the Group at the far-right of the game and the buttons would be right-aligned correctly.

Link to comment
Share on other sites

  • 4 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...