new Cesium.VRButtonViewModel(scene, vrElement)

The view model for VRButton.
Name Type Default Description
scene Scene The scene.
vrElement Element | string document.body optional The element or id to be placed into VR mode.

Members

command : Command

使命令切换 VR 模式.

isVREnabled : boolean

获取或设定是否应当启用 VR 功能 .
See:

isVRMode : boolean

获取 VR 模式是否活动 .

tooltip : string

获得工具提示。 这块地皮是可观察到的.

vrElement : Element

获取或设置在 VR 模式下的 NT% 0 元素 已按下相应的按钮.

Methods

destroy()

破坏观景模式. 应召 在不再需要时适当清理视图模型.

isDestroyed()boolean

Returns:
如果物体已被销毁, 则真实无误 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.