视图模型为 The view model for
HomeButton.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
scene |
Scene | 要使用的场景实例。 The scene instance to use. |
duration |
number | 可选 optional 相机飞行的持续时间(以秒为单位)。 The duration of the camera flight in seconds. |
成员 Members
获取单击按钮时执行的命令。 Gets the Command that is executed when the button is clicked.
获取或设置相机飞行的持续时间(以秒为单位)。值为零会导致相机立即切换到主视图。未定义时,将根据距离计算持续时间。 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.
控制场景。 Gets the scene to control.
获取或设置工具提示。这个性质是可以观察到的。 Gets or sets the tooltip. This property is observable.
