English中文

VRButtonViewModel

new Cesium.VRButtonViewModel(scene, vrElement)

视图模型为 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.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.