steven_EXC Posted August 29, 2016 Share Posted August 29, 2016 http://www.babylonjs-playground.com/#1LE9MW#0 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. Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted August 30, 2016 Share Posted August 30, 2016 Hmmm, I'm not sure if there is a reformat function or anything. @Nockawa would know, he da man! Quote Link to comment Share on other sites More sharing options...
adam Posted August 31, 2016 Share Posted August 31, 2016 http://www.babylonjs-playground.com/#1LE9MW#1 http://doc.babylonjs.com/overviews/Canvas2D_Group2D http://doc.babylonjs.com/overviews/Canvas2D_Prim_Positioning Nockawa 1 Quote Link to comment Share on other sites More sharing options...
Nockawa Posted August 31, 2016 Share Posted August 31, 2016 @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. Quote Link to comment Share on other sites More sharing options...
steven_EXC Posted August 31, 2016 Author Share Posted August 31, 2016 @Nockawa that totally makes sense, and as you responded, I was in the middle of writing up a response to thank @adam for helping me with the solution problem. Looks like I've gotta use Group2D elements. Thanks guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.