danksch Posted June 15, 2017 Share Posted June 15, 2017 Hi guys, I'm creating an UI for my babylon game via the Canvas2D, precisely the ScreenSpaceCanvas2D. Now I want to know if it's possible to update the text dynamically without recreating/overwriting the text2d child every time the score variable (which is used for displaying) is updated. Playground link for simplified case: http://www.babylonjs-playground.com/#2AVSFH#271 Thanks in advance! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 15, 2017 Share Posted June 15, 2017 Hello you should consider using Babylon.GUI instead: http://doc.babylonjs.com/overviews/gui danksch 1 Quote Link to comment Share on other sites More sharing options...
danksch Posted June 19, 2017 Author Share Posted June 19, 2017 Hello, thanks for answering, I'll look into babylon gui for now. 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.