Jump to content

dont have class GUI3DManager in babylonjs-gui


Recommended Posts

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) {
export default AppGui;


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...