SkillAgentSearch skills...

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/TLabWebViewVR

README

TLabWebViewVR

日本語版READMEはこちら

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

"Buy Me A Coffee"

[!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.

<details> <img src="Media/image.1.png" width="256"></img><br> <img src="Media/image.2.png" width="256"></img> </details>

Screenshot

Watch on Youtube
output

Operating Environment

| | | | ------- | ------------------- | | Headset | Oculus Quest 2 | | GPU | Qualcomm Adreno 650 | | Unity | 2021.45f2 |

Getting Started

Prerequisites

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>

</details>

Sample Scene

Meta XR SDK

  1. Assets/TLab/TLabWebViewVR/MetaXR/Samples/Scenes/MetaXR Sample.unity
  2. Assets/TLab/TLabWebViewVR/MetaXR/Samples/Scenes/MetaXR HandTracking Sample.unity

XR Interaction Toolkit

  1. Assets/TLab/TLabWebViewVR/XRInteractionToolkit/Samples/Scenes/XRInteractionToolkit Sample.unity
  2. Assets/TLab/TLabWebViewVR/XRInteractionToolkit/Samples/Scenes/XRInteractionToolkit SpatialKeyborad Sample.unity

Sample Repository for Unity 2022

View on GitHub
GitHub Stars67
CategoryDevelopment
Updated3d ago
Forks16

Languages

C#

Security Score

100/100

Audited on Mar 28, 2026

No findings