mafof Posted August 24, 2018 Share Posted August 24, 2018 Hello, i'am installed babylonjs-gui version 3.2.0 and read him, i found that there is no class GUI3DManager... also i have error to my browser `Uncaught TypeError: babylonjs_gui__WEBPACK_IMPORTED_MODULE_0__.GUI3DManager is not a constructor` it's my package.json "devDependencies": { "@babel/core": "^7.0.0-beta.42", "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.42", "@babel/preset-env": "^7.0.0-beta.42", "babel-loader": "^8.0.0-beta.2", "babylonjs": "^3.2.0", "babylonjs-gui": "^3.2.0", "babylonjs-loaders": "^3.2.0", "webpack": "^4.2.0", "webpack-cli": "^2.0.12" } it's place where i recieve error import * as GUI from 'babylonjs-gui'; class AppGui { constructor(mainApp) { if(mainApp == undefined || typeof mainApp.scene != "object") throw new Error("Select instance application"); this.manager = new GUI.GUI3DManager(mainApp.scene); // let button = this.addButton(); // button.onPointerDownObservable.add(() => { // console.log(button.name); // }); // this.manager.addControl(button); } /** * @deprecated */ addButton() { return new GUI.Button3D("click me"); } addCallbackButton(button, functionName) { button.onPointerDownObservable.add(functionName); } }; export default AppGui; Quote Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2018 Share Posted August 24, 2018 Hello this is expected as the 3D GUI was introduced with 3.3 You can get it from NPM as well (as a preview) mafof 1 Quote Link to comment Share on other sites More sharing options...
mafof Posted August 25, 2018 Author Share Posted August 25, 2018 11 hours ago, Deltakosh said: Hello this is expected as the 3D GUI was introduced with 3.3 You can get it from NPM as well (as a preview) Thanks) Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2018 Share Posted August 27, 2018 Flagging as solved 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.