There was an error while loading. Please reload this page.
Button()
Create a button, to be used for user interaction.
See the live demo.
var myButton = new XR.Button();
// setup controllers new XR.Gamepad(); // create a pointer new XR.Pointer(); // create button var myButton = new XR.Button({ text: 'hello world', color: 0xFF0000, action: buttonAction, }); // action to execute on button click function buttonAction(){ console.log('clicked'); }
text
string
color
background
action
function
href
url
borderRadius
float