VRButtonViewModel

external class VRButtonViewModel(scene: Scene, var vrElement: Element = definedExternally)(source)

The view model for VRButton.

Parameters

scene

The scene.

See also

Constructors

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

Properties

Link copied to clipboard

Gets the Command to toggle VR mode.

Link copied to clipboard

Gets or sets whether or not VR functionality should be enabled.

Link copied to clipboard

Gets whether or not VR mode is active.

Link copied to clipboard

Gets the tooltip. This property is observable.

Link copied to clipboard

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

Functions

Link copied to clipboard
fun destroy()

Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.

Link copied to clipboard