Modifier and Type | Field and Description |
---|---|
Command |
command
Gets the Command to toggle VR mode.
|
boolean |
isVREnabled
Gets or sets whether or not VR functionality should be enabled.
|
boolean |
isVRMode
Gets whether or not VR mode is active.
|
String |
tooltip
Gets the tooltip.
|
com.google.gwt.dom.client.Element |
vrElement
Gets or sets the HTML element to place into VR mode when the corresponding button is pressed.
|
Constructor and Description |
---|
VRButtonViewModel(Scene scene)
The view model for
VRButton . |
VRButtonViewModel(Scene scene,
com.google.gwt.dom.client.Element vrElement)
The view model for
VRButton . |
VRButtonViewModel(Scene scene,
String vrElement)
The view model for
VRButton . |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the view model.
|
boolean |
isDestroyed()
true if the object has been destroyed, false otherwise.
|
@JsProperty public Command command
@JsProperty public boolean isVREnabled
Fullscreen.enabled()
@JsProperty public boolean isVRMode
@JsProperty public String tooltip
@JsProperty public com.google.gwt.dom.client.Element vrElement
@JsConstructor public VRButtonViewModel(Scene scene)
VRButton
.scene
- The scene.@JsConstructor public VRButtonViewModel(Scene scene, String vrElement)
VRButton
.scene
- The scene.vrElement
- The id to be placed into VR mode.Copyright © 2019. All rights reserved.