Exa Posted October 30, 2017 Share Posted October 30, 2017 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 : babylon.inspector.bundle.js:410 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) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2017 Share Posted October 30, 2017 Hello you have to use the latest Babylon.js release if you use the preview release of the inspector. https://github.com/BabylonJS/Babylon.js/tree/master/dist/preview release (Thanks for the doc, I'll fix it) V!nc3r 1 Quote Link to comment Share on other sites More sharing options...
Exa Posted October 30, 2017 Author Share Posted October 30, 2017 Oh I did not notice than the documentation was for the preview, sorry about that, it works now, thank you Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2017 Share Posted October 30, 2017 No worry 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.