This sample Unity project is the minimum configuration for using TLabWebView
(3D web browser / 3D WebView plugin) with the XR Interaction Toolkit
. This includes searchbar example.
Note
This repository will be public archived and rebuilt in the future. This project was originally upgraded from the Unity 2021 VR template to Unity 2022, so the XR Interaction Toolkit cannot be safely upgraded to 3.0.x. Currently, the XR Interaction Toolkit is kept at version 2.5.4.
Warning
Note that this project only works on Android devices; it will not display web pages when run on the Unity Editor.
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
.
Document is here
Snippets is here
- Unity Editor: 2022.3.19f1
Clone the repository with the following command
git clone https://github.com/TLabAltoh/TLabWebViewVR-XRInteractionToolkit-2022.git
cd TLabWebViewVR-XRInteractionToolkit-2022
git submodule update --init
Please see the setup section here