Using GUI results in white screen


i was working on a little project and in the playground it worked alright.
However when i try to put my code in a file “index.html”, the screen would just be white.

I started with the index.html as shown here:

However, as soon as i add the line:
var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“gui”);

the screen will just be white. I opened the file with Firefox, Chrome and Edge, but it doesnt make any difference.
Is there anything i am missing?

My bad, i didn’t know the GUI required an extra import. Works fine now :slight_smile:

1 Like