HomeButton

external class HomeButton(    var container: <Error class: unknown class>,     scene: <Error class: unknown class>,     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: <Error class: unknown class>, scene: <Error class: unknown class>, duration: Double? = definedExternally)

Properties

Link copied to clipboard
var container: <Error class: unknown class>

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