Sign in to follow this  
danksch

Update Text2D in Canvas2D

Recommended Posts

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.