VRButton

external class VRButton(var container: Element, scene: Scene, vrElement: Element? = definedExternally)(source)

A single button widget for toggling vr mode.

Parameters

scene

The scene.

vrElement

The element or id to be placed into vr mode. Default value - document.body

See also

Constructors

Link copied to clipboard
constructor(container: Element, scene: Scene, vrElement: Element? = definedExternally)

Properties

Link copied to clipboard

The DOM element that will contain the widget.

Link copied to clipboard

Gets the view model.

Functions

Link copied to clipboard
fun destroy()

Destroys the widget. Should be called if permanently removing the widget from layout.

Link copied to clipboard