HomeButton

external class HomeButton(var container: Element, scene: Scene, duration: Double? = definedExternally)(source)

A single button widget for returning to the default camera view of the current scene.

Parameters

scene

The Scene instance to use.

duration

The time, in seconds, it takes to complete the camera flight home.

See also

Constructors

Link copied to clipboard
constructor(container: Element, scene: Scene, duration: Double? = 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