new HomeButtonViewModel(scene, duration)
View model of HomeButton.
| Name | Type | Description |
|---|---|---|
scene |
Scene |
The scenario instance to be used. |
duration |
Number |
optional
The duration of camera flight, measured in seconds. |
Members
-
commandCommand
-
Get the command executed when the button is clicked.
-
durationNumber undefined
-
Gets or sets the duration of camera flight in seconds. If the value is 0, the camera will immediately switch to the main view.
-
sceneScene
-
Obtain the scene to be controlled.
-
tooltipString
-
Get or set tooltips. This attribute is observable.