Jump to content

Canvas2D: Text2D text alignment bug


Recommended Posts


I've set the marginAlignment to be centered, yet when i reassign the text after the initial frame it was created, it left aligns seemingly to some bounding box of the text that's created at the end of the frame that the Text2D object is created.  I'm pretty confident this was behaving correctly before roughly a week ago.

Link to comment
Share on other sites

@steven_EXC did  you use absolute positioning (by specifying the position/x/y properties) with alignment in your code?

If so it shouldn't be done and what you once had is not something you should expect to behave the same way. I changed the code recently which made the behavior when using both absolute position and alignment different.

Link to comment
Share on other sites

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.

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.


  • Recently Browsing   0 members

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