Jump to content

Debug layer not working


Recommended Posts

I try to use scene.debugLayer.show(); after add <script src=https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js></script>

I have then this error : 


Uncaught TypeError: BABYLON.SceneInstrumentation is not a constructor
    at new n (babylon.inspector.bundle.js:410)
    at new n (babylon.inspector.bundle.js:410)
    at t._buildInspector (babylon.inspector.bundle.js:408)
    at new t (babylon.inspector.bundle.js:408)
    at DebugLayer._createInspector (babylon.js:61485)
    at DebugLayer.show (babylon.js:61513)
    at toggleDebugLayer (index.html:782)
    at HTMLButtonElement.<anonymous> (index.html:821)

Any ideas?

(by the way in the documentation, there is a at the end of the url <script src=https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js></script> (here : https://doc.babylonjs.com/how_to/debug_layer)

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