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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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