TLabWebView
  • Documentation
Powered by GitBook
On this page
  • What is TLabWebView?
  • The goal of the development
  • Independent of developer tools
  • Supports both OpenGL and Vulkan
  • Supports both WebView and GeckoView for the browser engine
  • How to get it
  • Donation
  • Note
  • Discussion

Documentation

This is the documentation page for TLabWebView. The contents will be updated as needed.

Last updated 2 months ago

What is TLabWebView?

TLabWebView is a Plug-in to use Android's web browser component ( / ) as uGUI (Texture2D). Works on mobile and VR devices (e.g. Oculus Quest). This plugin makes it possible to implement a 3D web browser (3D WebView) within Unity.

The goal of the development

Independent of developer tools

Meta XR SDK, XR Interaction Toolkit, MRTK, VRIF ...., there are some developer tool for Unity but they are usually based on PointerEvent for uGUI interaction. TLabWebView's touch panel interaction is also developed based on PointerEvent for high compatibility and easy integration with any development tool.

Supports both OpenGL and Vulkan

This plugin supports both Vulkan and OpenGLES, but if you are building an application that uses a Vulkan graphics API, the Android device must support OpenGLES (3.1+) as well as Vulkan.

Supports both WebView and GeckoView for the browser engine

How to get it

The source code is available on GitHub. Please click on the links below to obtain samples that suit your purpose.

Donation

TLabWebView is open source and therefore free to use, but donations motivate development.

Note

Scripting API page removed to maintain integrity between source and document. Currently groping for a way to automatically reflect the original source's xml summary on the gitbook's scripting API page.

Discussion

This plugin supports WebView and GeckoView for the browser engine, but currently the GeckoView feature is only developed with version and needs API level 33+ for build. WebView and GeckoView are mostly same, but WebView doesn't need to include browser engine library (like gekoview-*.aar) in the app, and this is benefit for reduce app size. Also, WebView could send message from javascript to Unity CSharp easily, it has benefit for interaction with browser and Unity CSharp. In contrast, GeckoView needs to include browser engine library in the app, but more customizability than WebView for popup UI event. Currently, uGUI based html5 popup (select tag, datatime-local, etc ...) are supported only in GeckoView.

125.0.20240425211020
unity-discussions
github-issues
WebView
GeckoView
Demonstration using Oculus quest 2 + Oculus Integration
Demonstration using Oculus quest 2 + Mixed Reality Toolkit
GitHub - TLabAltoh/TLabWebView: Plug-in for WebView that runs in Unity and can display WebView results as Texture2DGitHub
Plug-in to use Android WebView as uGUI (Texture2D)
GitHub - TLabAltoh/TLabWebViewSample: Sample unity project to make WebView work on mobileGitHub
Sample Unity project to make TLabWebView work on mobile
GitHub - TLabAltoh/TLabWebViewVR: Sample project for using WebView in Oculus quest VR in UnityGitHub
Sample Unity project for using TLabWebView in OculusQuest. Includes Meta XR SDK and XR Interaction Toolkit implementation example.
GitHub - TLabAltoh/TLabWebViewMRTK: Sample unity project for manipulating WebView from Mixed Reality Toolkit. Confirmed to work on Oculus.GitHub
Sample Unity project for using TLabWebView with Mixed Reality Toolkit in OculusQuest
GitHub - TLabAltoh/TLabWebViewMRTK3: Sample Unity project for using TLabWebView with MRTK3 in OculusQuestGitHub
Sample Unity project for using TLabWebView with MRTK3 in OculusQuest
GitHub - TLabAltoh/google-cardborad-webview-sampleGitHub
Currently, this is a very rough example project. Just display webview on google-cardborad-sample.
Logo
GitHub - TLabAltoh/TLabWebViewPlugin: Source code of java plugin used in TLabWebViewGitHub
Source code of java plugin used in TLabWebView
TLabAltoh is Plug-in assets for unityBuy Me a Coffee
Logo
Logo
Logo
Logo
Logo
Logo
Logo