用于返回当前场景的默认摄像机视图的单个按钮小部件。 A single button widget for returning to the default camera view of the current scene.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
container |
Element | string | 将包含小部件的 DOM 元素或 ID。 The DOM element or ID that will contain the widget. |
scene |
Scene | 要使用的场景实例。 The Scene instance to use. |
duration |
number | 可选 optional 完成相机飞行回家所需的时间(以秒为单位)。 The time, in seconds, it takes to complete the camera flight home. |
成员 Members
获取父容器。 Gets the parent container.
获取视图模型。 Gets the view model.
方法 Methods
销毁小部件。如果从布局中永久删除小部件,则应调用。 Destroys the widget. Should be called if permanently removing the widget from layout.
返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
