Skip to content

KBE3D / KBCore / Cesium / VRButton

类: VRButton

A single button widget for toggling vr mode.

参数

The DOM element or ID that will contain the widget.

参数

The scene.

参数

The element or id to be placed into vr mode.

构造函数

构造函数

new VRButton(container: string | Element, scene: Scene, vrElement?: string | Element): VRButton

参数

container

string | Element

scene

Scene

vrElement?

string | Element

返回

VRButton

属性

container

container: Element

Gets the parent container.


viewModel

viewModel: VRButtonViewModel

Gets the view model.

方法

isDestroyed()

isDestroyed(): boolean

返回

boolean

true if the object has been destroyed, false otherwise.


destroy()

destroy(): void

Destroys the widget. Should be called if permanently removing the widget from layout.

返回

void

KBE3D @3.0.6 Copyright © 2024-present @沉淀.