debugLayer.show() brings up inspector but no scene explorer

Hi,

I tried to call the inspector through scene.debugLayer.show() but I only see one inspector window. How can I bring up the scene explorer window as well?

I had both “@babylonjs/core”: “^4.0.3” and “@babylonjs/inspector”: “^4.0.3” npm installed.

Many thanks.

Actually, I found that settingt embedMode: true in config object when you call debugLayer.show(config) function will bring out both window

2 Likes

i found in my case, it was becuase html for the explorer was below the canvas for some weird reason and wasnt positioned quite right, so i hacked the formatting of the panels somewhat with some global css.

#scene-explorer-host {
    z-index: 10;
    height: 100vh;
    position: absolute! important;
    left: 0;
}

#inspector-host {
    height: 100vh;
    right: 0;
}
1 Like