Jump to content

[GUI Problem] I don't know why this isn't working


Recommended Posts

Hello ! I'm working on a game and I need to the GUI extension.

So, as needed, I added this line


<script src="https://preview.babylonjs.com/gui/babylon.gui.js"></script>

after including the babylon.js file, I made run my script but I get this error


"TypeError: scene.onPreKeyboardObservable is undefined"


"Source map error: request failed with status 404
Resource URL: https://preview.babylonjs.com/gui/babylon.gui.js
Source Map URL: button.js.map" in the console

It's been yesterday I was looking for the answer but I did'nt find any

        Please help me, Thanks !


Link to comment
Share on other sites

Yes, I included babylon.gui.js after babylon.js file (like this : )


<script src="/Babylonjs/babylon.js"></script>
<script src="https://preview.babylonjs.com/gui/babylon.gui.js"></script>

And, Yes I am using Babylonjs 3.0 (It's written on my console)

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...