HomeButtonViewModel

open external class HomeButtonViewModel(var scene: Scene, duration: Double? = definedExternally)(source)

The view model for HomeButton.

Parameters

duration

The duration of the camera flight in seconds.

See also

Constructors

Link copied to clipboard
constructor(scene: Scene, duration: Double? = definedExternally)

Properties

Link copied to clipboard
external var command: Command

Gets the Command that is executed when the button is clicked.

Link copied to clipboard
external var duration: Double?

Gets or sets the the duration of the camera flight in seconds. A value of zero causes the camera to instantly switch to home view. The duration will be computed based on the distance when undefined.

Link copied to clipboard
external var scene: Scene

The scene instance to use.

Link copied to clipboard
external var tooltip: String

Gets or sets the tooltip. This property is observable.