Richard C Posted February 5, 2017 Share Posted February 5, 2017 Help anyone please. I am adapting code from http://www.babylonjs-playground.com/#1HSCKR#2 Getting the following error message:- babylon.2.5.canvas2d.js:6 Uncaught TypeError: Cannot read property 'GetCachedFontTexture' of undefined at i.get [as fontTexture] (babylon.2.5.canvas2d.js:6) at i.get [as textSize] (babylon.2.5.canvas2d.js:6) at i.get [as size] (babylon.2.5.canvas2d.js:6) at i.get [as actualSize] (babylon.2.5.canvas2d.js:6) at i.updateLevelBoundingInfo (babylon.2.5.canvas2d.js:6) at i.get [as levelBoundingInfo] (babylon.2.5.canvas2d.js:2) at i.get [as boundingInfo] (babylon.2.5.canvas2d.js:3) at i.get [as boundingInfo] (babylon.2.5.canvas2d.js:3) at i.get [as size] (babylon.2.5.canvas2d.js:3) at i.l.set [as size] (babylon.2.5.canvas2d.js:1) Can you point me in the right direction of a solution please. Many thanks Richard C Quote Link to comment Share on other sites More sharing options...
Richard C Posted February 6, 2017 Author Share Posted February 6, 2017 UPDATE: Downloading babylon.2.5.canvas2d.js from the Babylon github site produces the error but downloading the file from https://babylonjs.azurewebsites.net/babylon.canvas2d.js does not. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 6, 2017 Share Posted February 6, 2017 You should have used bjs 2.6 with canvas 2.5 If you use the version builder you can get everything from the same version: http://www.babylonjs.com/versionBuilder/ Quote Link to comment Share on other sites More sharing options...
Richard C Posted February 7, 2017 Author Share Posted February 7, 2017 Thanks Deltakosh. For the benefit of others who may read this thread, are you saying that the best and safest way of ensuring compatibility between the latest version of Babylon and add-on extensions is to use the versionBuilder rather than github from now on? cheers R Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 7, 2017 Share Posted February 7, 2017 Correct 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.