Sample Unity project for using TLabWebView (3D web browser / 3D WebView plugin) in OculusQuest. Includes Meta XR SDK and XR Interaction Toolkit implementation example.
Document is here
Snippets is here
Warning
Note that this project only works on Android devices; it will not display web pages when run on the Unity Editor.
Warning
Meta XR All-in-One SDK is having a reference error at version 74 (Please see this forum), so I will keep version 72 for now.
Warning
I do not recommend building this project on Unity 6000.x when deploying to Oculus Quest (or Meta Quest). Right now, I have found that HardwareBuffer mode is unstable when this project is built with Unity 6000.x (See this issue for details). If you do, please refer to the "Configuration for Unity 6000.x" section in the Setup section.
Warning
This project uses HardwareBuffer as the default CaptureMode for WebView and Vulkan is used as the default Graphics API. This combination of HardwareBuffer option and Vulkan API is confirmed to work with Oculus Quest, but may not work with some other devices (e.g., the WebView screen may go blank). In that case, Please change the project's Graphics API from Vulkan, which is set by default, to OpenGLES. Or change the CaptureMode from HardwareBuffer to ByteBuffer.
| Headset | Oculus Quest 2 |
| GPU | Qualcomm Adreno 650 |
| Unity | 2021.37f1 |
- Unity 2021.26f1 (meta xr sdk requires Unity Editor 2021.26f1 ~)
- meta-xr-all-in-one-sdk
- com.unity.xr.interaction.toolkit
- TLabVKeyborad
- TLabWebView
- Clone the repository with the following command
git clone https://github.com/TLabAltoh/TLabWebViewVR.git
cd TLabWebViewVR
git submodule update --init
Please see the setup section here
When using the OpenXR plugin
Please disable Force Remove Internet Permission from XR Plugin Manegement
Configuration for Unity 6000.x
When opening this project in Unity 6000.x, a compile error occurs in the TMPro resource. To resolve this, re-import the TMPro resources.
Also, please change the capture mode from the default HardwareBuffer to ByteBuffer.
Assets/TLab/TLabWebViewVR/MetaXR/Samples/Scenes/MetaXR Sample.unity
Assets/TLab/TLabWebViewVR/XRInteractionToolkit/Samples/Scenes/XRInteractionToolkit Sample.unity