VRButtonViewModel

new Cesium.VRButtonViewModel(scene, vrElement)

The view model for VRButton.
参数名称 类型 默认值 描述信息
scene Scene The scene.
vrElement Element | string document.body 可选 The element or id to be placed into VR mode.

成员(属性)

Gets the Command to toggle VR mode.
Gets or sets whether or not VR functionality should be enabled.
参考:
Gets whether or not VR mode is active.
Gets the tooltip. This property is observable.
Gets or sets the HTML element to place into VR mode when the corresponding button is pressed.

方法

Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回值:
true if the object has been destroyed, false otherwise.