Search the Community
Showing results for tags 'babylonjs-gui'.
-
Hi, I am trying to create a GUI which has a background image. The GUI I built will look something like this: http://www.babylonjs-playground.com/#VEHQTQ Is it possible to attach a background image to the stackPanel I created? I am aware that I can use a background color but what I really want is to place an image there... Is this possible or is there a better solution for what I am trying to achieve? Thx,
-
I am getting the following error when trying to explore the GUI extension. I think that I might be cross-pollinating between the new modular approach that just came out, and maybe old instructions for pre-alpha docs? From http://doc.babylonjs.com/overviews/gui (I am showing my requires at the top, and line 61 from map.js): var BABYLON = require('babylonjs') var GUI = require('babylonjs-gui') ... var gui = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI('UI') // var gui = GUI.AdvancedDynamicTexture.CreateFullscreenUI('UI') Uncaught TypeError: Cannot read property 'add' of undefined at new r (/home/rook/Documents/Projects/babylon-testing/node_modules/babylonjs-gui/babylon.gui.mi…:1) at Function.r.CreateFullscreenUI (/home/rook/Documents/Projects/babylon-testing/node_modules/babylonjs-gui/babylon.gui.mi…:1) at createScene (map.js:61) at map.js:68 I have tried both using GUI.AdvancedDynamicTexture.CreateFullscreenUI() and BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI() as you can see from the commented-out line. Both error out. What am I doing wrong?