Open inspector pragmatically from API call
Hello there,
I wondered is there a way to open the inspector pragmatically instead of using shortcut?
My scenario is that I have a A-Frame scene appear inside a <div> window inside my app, so the scene is not full-screen and I want to place a button underneath the scene that opens up the inspector.
So code similar to this is what I have imagined:
document.querySelector("a-scene").openInspector();
Hi, I always use the command below from the dev console:
AFRAME.scenes[0].inspect()
Made quickly a Codepen to try and seems the same command works for embedded A-Frame without querying its root, but the inspector becomes full screen.
Hi chaps,
I have only just got around to looking at this. Is there any extra JS I need to include?
I am using the latest (1.1.0/aframe.min.js) and do nt see an AFRAME.INSPECTOR object nor a inspect() function on the scene.

Try:
window.postMessage('INJECT_AFRAME_INSPECTOR')
Multiple solutions have been provided, can we close this issue @dmarcos ?