VRButton

new Cesium.VRButton(container, scene, vrElement)

用于切换vr模式的单个按钮小部件。
Name Type Default Description
container Element | string 将包含小部件的DOM元素或ID。
scene Scene The scene.
vrElement Element | string document.body optional 元素或id要放置到vr模式。
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.