Sample project for using TLabWebView
(3D web browser / 3D WebView plugin) with Mixed Reality Toolkit
Document is here
Snippets is here
Note
This is a project created for Oculus Quest 2 using MRTK2, but it will not work with HoloLens. This is because the WebView used is an Oculus (or Android) dependent system.
Note
This project is configured by default not to open http sites (a blank screen is displayed); if you want to open http sites, set clearartextTrafficPermitted to true in network_sec_config.xml.
Warning
When upgrading a project to Unity 2022.3.x, a problem was found where the build and web page display succeeded, but the controller and hand tracking were not enabled. Since the cause is not yet known, I recommend that this project be built with Unity 2021.3.x.
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
.
- Oculus Quest 2
- Qualcomm Adreno650
- Unity 2021.3 LTS
- Mixed Reality Toolkit
- Oculus Integration
- TLabVKeyborad
- TLabWebView
Clone the repository with the following command
git clone https://github.com/TLabAltoh/TLabWebViewMRTK.git
cd TLabWebViewMRTK
git submodule update --init
Please see the setup section here
/Assets/TLab/TLabWebViewMRTK/Scene/TLabWebView MRTK Sample.unity