Seems that some official examples are now inside <script type="module">. How can I get a variable from inside the example into the Chome’s developer Console?
For example I would like to write “scene” into the console and inspect its value. This was possible, when the main variables were in the global scope.
The tool does not seem too usable yet. For the linked example it shows me only 1 mesh in the scene and 2 BoxBufferGeometry objects, instead of the cube, knot and sphere.
You can just put console.log( scene ) in the code.
But I guess you mean doing this with the live example on threejs.org, which means that you can’t edit the code. I think that the chrome console allows you to pause scripts and check the value of a variable without making any changes to the code. Not sure how to do it though.
Hopefully at some point we’ll upgrade the examples to allow code editing like Babylon.js does.