I loaded up a project from a few months ago that was working with:
<script src="https://cdn.babylonjs.com/babylon.max.js"></script>
<script src="https://preview.babylonjs.com/gui/babylon.gui.min.js"></script>
but now when calling:
let advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
I am getting a “404 - failed to load resource” related to:
https://cdn.babylonjs.com/babylon.sceneHelpers.js.map
When using the CDN’s is there a place to go to look for the resources so I can solve this myself next time?
This is because you are using the .max version of babylon. just change it to
<script src="https://cdn.babylonjs.com/babylon.js"></script>
1 Like
Thank you that removed that error. Now I have:
TypeError: undefined is not an object (evaluating 'h._TypeStore.RegisteredTypes')
TypeError: undefined is not an object (evaluating 'BABYLON.GUI.AdvancedDynamicTexture')
This is still referencing the following line of code:
let advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
I tried removing min from the ‘gui’ script reference, but that just changes the error.
If there is some place I can be looking in the docs for this please point me at them. I usually like to RTFM but am having no luck here.
Oh yeah as I mentioned in another post you have to use same version for all:
<script src="https://preview.babylonjs.com/babylon.js"></script>
<script src="https://preview.babylonjs.com/gui/babylon.gui.min.js"></script>
1 Like
Thank you. That removed the error. Now I can go back to normal troubleshooting.
1 Like