Dependence on babylon.inspector.bundle

Hello,

I have just updated the latest version of babylon as well as the inspector and it generated an error if I don’t use: babylonjs.loaders.min.js

I didn’t need this addiction before. Is it now essential like babylon.gui?

before :

<script src="engine/babylon.js"></script>
<script src="engine/babylon.gui.min.js"></script>  
<script src="engine/babylon.inspector.bundle.js"></script>	

Now I have to add:

<script src="engine/babylon.js"></script>
<script src="engine/babylon.gui.min.js"></script>        
    <script src="engine/babylonjs.loaders.min.js"></script>       
<script src="engine/babylon.inspector.bundle.js"></script>	

Thank you!

Yup the inspector has a strong dependency on the loaders due to some new functionalities added into it. It was in before but by luck not impacting runtime.

If you really do not want the tag in your page, I could probably provide a mock of the required functions but it wont be sustainable long time as we add more and more into the inspector.

I don’t mind adding this dependency, I was wondering if it was normal. I did not see any indication of this new addiction and I looked for a long time before understanding.

Thank you Sebavan

1 Like