Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
var button1 = BABYLON.GUI.Button.CreateSimpleButton("but1", "Click Me");
button1.width = "150px"
button1.height = "40px";
button1.color = "white";
button1.cornerRadius = 20;
button1.background = "green";
button1.onPointerUpObservable.add(function() {
pushedFlag=true;
});
advancedTexture.addControl(button1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment