Skip to main content

vrButton

Typeboolean | ControlBarItemOptions
Defaulttrue
Added inv4.0.0

Displays the "enter VR" button.
If true, it'll show the button & apply the default options.
If false, it won't display the button.
You can also set detailed options by setting a object of type ControlBarItemOptions.
Displayed only in environments where VR is available.

Example

Below is an example of not displaying a button.

import { ControlBar } from "@egjs/view360";

new ControlBar({
vrButton: false
})

Below is an example of a button displaying in a different location.

import { ControlBar } from "@egjs/view360";

new ControlBar({
vrButton: {
position: ControlBar.POSITION.TOP_RIGHT,
order: 0
}
})