TLabWebViewVR
Sample Unity project for using TLabWebView (3D web browser / 3D WebView plugin) in OculusQuest. Includes Meta XR SDK and XR Interaction Toolkit implementation example.
Install / Use
/learn @TLabAltoh/TLabWebViewVRREADME
TLabWebViewVR
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
HardwareBuffermode 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
<details> <img src="Media/image.1.png" width="256"></img><br> <img src="Media/image.2.png" width="256"></img> </details>HardwareBufferas the defaultCaptureModefor WebView andVulkanis used as the defaultGraphics API. This combination ofHardwareBufferoption andVulkanAPI 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'sGraphics APIfromVulkan, which is set by default, toOpenGLES. Or change theCaptureModefromHardwareBuffertoByteBuffer.
Screenshot
Operating Environment
| | | | ------- | ------------------- | | Headset | Oculus Quest 2 | | GPU | Qualcomm Adreno 650 | | Unity | 2021.45f2 |
Getting Started
Prerequisites
- Unity 2021.26f1 (meta xr sdk requires Unity Editor 2021.26f1 ~)
- meta-xr-all-in-one-sdk
- com.unity.xr.interaction.toolkit
- TLabVKeyborad
- TLabWebView
Installing
- Clone the repository with the following command
git clone https://github.com/TLabAltoh/TLabWebViewVR.git
cd TLabWebViewVR
git submodule update --init
Set Up
Please see the setup section here
<details><summary>When using the OpenXR plugin</summary>Please disable Force Remove Internet Permission from XR Plugin Manegement
<img src="Media/image.0.png" width="512"></img>
</details> <details><summary>Configuration for Unity 6000.x</summary>When opening this project in Unity 6000.x, a compile error occurs in the TMPro resource. To resolve this, re-import the TMPro resources.
<img src="Media/image.3.png" width="256"></img>
Also, please change the capture mode from the default HardwareBuffer to ByteBuffer.
<img src="Media/image.1.png" width="256"></img>
<img src="Media/image.2.png" width="256"></img>
Sample Scene
Meta XR SDK
Assets/TLab/TLabWebViewVR/MetaXR/Samples/Scenes/MetaXR Sample.unityAssets/TLab/TLabWebViewVR/MetaXR/Samples/Scenes/MetaXR HandTracking Sample.unity
XR Interaction Toolkit
Assets/TLab/TLabWebViewVR/XRInteractionToolkit/Samples/Scenes/XRInteractionToolkit Sample.unityAssets/TLab/TLabWebViewVR/XRInteractionToolkit/Samples/Scenes/XRInteractionToolkit SpatialKeyborad Sample.unity


