VRButtonViewModel

new Cesium.VRButtonViewModel(scene, vrElement)

视图模型 VRButton.
Name Type Default Description
scene Scene 场景。
vrElement Element | string document.body optional 要置于 VR 模式的元素或 ID。

Members

获取要切换的命令 VR mode.
获取或设置是否应启用 VR 功能。
See:
获取是否 VR是活跃的.
获取工具提示。这个属性是可观察的。
获取或设置HTML 元素置入 VR 模式时 按下相应的按钮。

Methods

销毁视图模型。应该被称为 当不再需要视图模型时,适当地清理视图模型。
Returns:
如果对象已被销毁,则为true,否则为false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.