I am trying to make a HUD that displays constantly changing data (distance to enemy, etc.).
I was thinking that using a GUI.Image. In order to do that, I would need to have access to the canvas element where I could update the canvas by hand and then call an .update() like you do with a dynamicTexture texture.
var wallTexture = new BABYLON.DynamicTexture('', someCanvas, scene) ... // do things to somCanvas ... wallTexture.update()
Is this a good idea and is it possible?
var image = new BABYLON.GUI.Image("but", "textures/grass.png");
how would I reference the “wallTexture” since it is not attached to a material?