视图模型为 The view model for
VRButton.
| 名称 Name | 类型 Type | 默认值 Default | 说明 Description |
|---|---|---|---|
scene |
Scene | 现场。 The scene. | |
vrElement |
Element | string |
document.body
|
可选 optional 要置于 VR 模式的元素或 id。 The element or id to be placed into VR mode. |
成员 Members
获取切换 VR 模式的命令。 Gets the Command to toggle VR mode.
获取或设置是否应启用 VR 功能。 Gets or sets whether or not VR functionality should be enabled.
另见: See:
获取 VR 模式是否处于活动状态。 Gets whether or not VR mode is active.
获取工具提示。这个性质是可以观察到的。 Gets the tooltip. This property is observable.
获取或设置按下相应按钮时要置于 VR 模式的 HTML 元素。 Gets or sets the HTML element to place into VR mode when the corresponding button is pressed.
方法 Methods
破坏视图模型。当不再需要视图模型时,应该调用它来正确清理视图模型。 Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
