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:

Members

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

Methods

销毁控件。如果从布局中永久移除控件,应调用此方法。

isDestroyed()boolean

Returns:
如果对象已被销毁则返回 true,否则返回 false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.