VRButton

new Cesium.VRButton(container, scene, vrElement)

用于切换VR模式的按钮部件。
Name Type Default Description
container Element | String 包含该部件的DOM元素或ID。
scene Scene 要使用的场景实例。
vrElement Element | String document.body optional 要进入VR模式的元素或id。
Throws:
  • DeveloperError : id为“container”的元素在文档中不存在。

Members

container : Element

获取父容器。
获取视图模型。

Methods

销毁该部件。部件。如果从布局中永久删除部件,则应该调用。

isDestroyed()Boolean

判断该部件是否已经被销毁。
Returns:
如果对象已被销毁,则为true,否则为false。