JackFalcon Posted May 26, 2017 Share Posted May 26, 2017 Hello, Trying out Canvas2D, getting: 'BABYLON.Text2D is not a constructor' Using alpha version ('babylon/babylon.3.0.0-alpha.max.js'). Did anything change, or is extension needed? Thanks! Quote Link to comment Share on other sites More sharing options...
adam Posted May 26, 2017 Share Posted May 26, 2017 You also need babylon.canvas2d.js. https://github.com/BabylonJS/Babylon.js/tree/master/dist/preview release/canvas2D JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
Kreeba Posted July 23, 2017 Share Posted July 23, 2017 I am getting the same issue. The link you posted 404's I am using the current NPM release Quote Link to comment Share on other sites More sharing options...
JohnK Posted July 23, 2017 Share Posted July 23, 2017 You need to read these find Canvas2D at https://github.com/BabylonJS/Extensions/tree/master/canvas2D/dist/preview release You will have to decide whether to stick with Canvas2D or go with GUI JackFalcon and Steffen 2 Quote Link to comment Share on other sites More sharing options...
Kreeba Posted July 23, 2017 Share Posted July 23, 2017 Thanks John. Question: Can I load the Canvas2D extension through NPM? I am using TypeScript and would prefer everything going through NPM. What are my best options here? Quote Link to comment Share on other sites More sharing options...
Kreeba Posted July 23, 2017 Share Posted July 23, 2017 I have created a new topic as this question isn't related to the original topic. 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.