Open HouLingLXH opened 3 years ago
Hi @HouLingLXH can you open the devtools and see if you have errors ? It looks like the loading part of the inspector failed. As previous issue, would be awesome if we can use the forum instead for questions: https://forum.babylonjs.com/ :)
No error in devtools console。
When I import them in my scrpt: import "@babylonjs/core/Debug/debugLayer"; import "@babylonjs/inspector";
If run in Editor , I get the error: [ERROR]: An error happened: Cannot use import statement outside a module.
but I can see the inspector by Run in Itegrated Browser, like the picture.
When I don't import them ,i can see inspector by Run in Editor, but can't see it when i Run in Intergrated Brower:
babylon.inspector.bundle.js:1 Uncaught TypeError: Cannot read property 'GUI' of undefined at babylon.inspector.bundle.js:1 at babylon.inspector.bundle.js:1
Uncaught TypeError: Cannot read property 'Inspector' of undefined at DebugLayer../node_modules/@babylonjs/core/Debug/debugLayer.js.DebugLayer._createInspector (debugLayer.js:97) at debugLayer.js:164 at HTMLScriptElement.script.onload (tools.js:367)
When I open then inspector by scene.debugLayer.show(), and play , then I click the window, I get the disorder: