This Unity project demonstrates how to view and interact with web content in VR on Meta Quest headsets (2, 3, 3S, Pro) using Vuplex 3D WebView. It includes the Meta XR All-In-One SDK, so the only additional thing you must import is 3D WebView for Android.
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.
- Created a new project with Unity 6.2 (6000.2.10f1) using the default Universal 3D project template.
- Opened the Unity Package Manager and did the following:
- Imported v78.0 of the Meta XR All-In-One SDK.
- On the page for the Meta XR Interaction SDK package (com.meta.xr.sdk.interaction.ovr), clicked on the "Samples" tab and clicked "Import" button for "Example Scenes".
- Imported 3D WebView.
- Copied the RayExamples sample scene to Assets/Scenes.
- Made the following modifications to the RayExamples scene copy:
- Renamed the scene to MetaXRWebViewExample.
- Added a CanvasWebViewPrefab and CanvasKeyboard to its curved Canvas.
- Removed unneeded objects from the scene.
- Added the MetaXRWebViewExample.cs script to demonstrate using 3D WebView's scripting APIs.
