How to use inspector with viewer?

Hi All

I tried importing the inspector to use with a viewer

<script src=""></script>
<script src=""></script>

then using :

        .then(function (viewer) {         
          viewer.onSceneInitObservable.add(function (scene) {             
            return scene;

i get errors …

so how to do this…?

I think you need to add the babylon.js script: <script src=""></script>

Works here:


ok thanks , i didnt think to try that because the viewer object has the BABYLON object itself