This Unity project demonstrates how to view and interact with web content in VR on Oculus Quest, Quest Pro, and Rift using Vuplex 3D WebView. It includes the Oculus Integration package, so the only additional thing you must import is one or more 3D WebView packages:
- For Oculus Quest / Quest Pro: 3D WebView for Android (or the Gecko package)
- Note: 3D WebView's native Android plugins can't run in the editor, so a mock webview implementation is used by default while running in the editor unless 3D WebView for Windows and macOS is also installed.
- For Oculus Rift: 3D WebView for Windows and macOS
- Created a new project with Unity 2021.3.11.
- Installed the Oculus Integration package (v54.1).
- Installed 3D WebView (.gitignore).
- Created a new scene named OculusWebViewDemoScene to combine 3D WebView's WebViewPrefab and Keyboard prefabs with the Oculus OVRCameraRig.
- Added support for controllers by adding the Oculus UIHelpers prefab to the scene.
- Made the following tweaks to the scene's UIHelpers prefab instance:
- Updated the OVRInputModule script's "Ray Transform" and "Joypad Click Button" values
- Disabled the Sphere cursor visual
- Enabled the LaserPointer's line renderer and set its material
The Oculus Integration library located in Assets/Oculus is Copyright © Facebook Technologies, LLC and its affiliates. All rights reserved. The Oculus Integration Library is licensed under the Oculus SDK License.
All other code and assets are Copyright © Vuplex, Inc and licensed under the MIT License.