Appearance
KBE3D / KBCore / Cesium / VRButtonViewModel
类: VRButtonViewModel
The view model for VRButton.
参数
The scene.
参数
The element or id to be placed into VR mode.
属性
isVRMode
isVRMode:
boolean
Gets whether or not VR mode is active.
isVREnabled
isVREnabled:
boolean
Gets or sets whether or not VR functionality should be enabled.
tooltip
tooltip:
string
Gets the tooltip. This property is observable.
vrElement
vrElement:
Element
Gets or sets the HTML element to place into VR mode when the corresponding button is pressed.
command
command:
Command
Gets the Command to toggle VR mode.
方法
isDestroyed()
isDestroyed():
boolean
返回
boolean
true if the object has been destroyed, false otherwise.
destroy()
destroy():
void
Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回
void
构造函数
构造函数
new VRButtonViewModel(
scene:Scene,vrElement?:string|Element):VRButtonViewModel
参数
scene
vrElement?
string | Element
返回
VRButtonViewModel
