Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
create(scene: Scene): BabylonButton {
this.button = new BabylonButton(this.props.name)
// Missing click/enter/move/out/etc.
if (typeof this.props.onPointerDown === "function") {
this.button.onPointerDownObservable.add(this.props.onPointerDown)
}
return this.button
}