VRButtonViewModel

new Cesium.VRButtonViewModel(scene, vrElement)

VRButton 的视图模型。
Name Type Default Description
scene Scene 场景实例。
vrElement Element | string document.body optional 进入 VR 模式的元素或 id。

Members

获取用于切换 VR 模式的 Command。
获取或设置是否启用 VR 功能。
See:
获取 VR 模式是否处于活动状态。
获取工具提示。此属性可被观察。
获取或设置在按下相应按钮时进入 VR 模式的 HTML 元素。

Methods

销毁视图模型。当不再需要视图模型时应调用此方法以正确清理。
Returns:
如果对象已被销毁则返回 true,否则返回 false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.