Hi,
If I make a new button:
var niceButton = BABYLON.GUI.Button.CreateSimpleButton(
“such_a_nice_button” , “click me”
);
I can return the name value “such_a_nice_button” on click with:
topicButton.onPointerDownObservable.add(function() {
console.log(niceButton.name);
});
but how can I console.log the “click me”? What is this second (optional) parameter called?