Skip to content

JGameMaker92/TLabWebView

 
 

Repository files navigation

TLabWebView

日本語版READMEはこちら

Plug-in for WebView that runs in Unity and can display WebView results as Texture2D

  • Hardware-accelerated rendering is available
  • Key input support
  • File Download Support (blob url, data url, download manager ...)
  • Supports javascript execution
  • Resize webview and texture

"Buy Me A Coffee"

Document

document is here

Unity version this plugin supports

  • Unity 2021
  • Unity 2022

Screenshot

Screenshot run on Android 13, Adreno 619

Operating Environment

OS Android 10 ~ 13
GPU Qualcomm Adreno 505, 619
Unity 2021.3

Getting Started

Requirements

Installing

Clone the repository or download it from the release and place it in the Asset folder of Unity

Set Up

  • Build Settings
Property Value
Platform Android
  • Project Settings
Property Value
Color Space Linear
Graphics OpenGLES3
Minimum API Level 26
Target API Level 30 (Unity 2021), 31 ~ 32 (Unity 2022)
  • Add the following symbols to Project Settings --> Player --> Other Settings (to be used at build time)
UNITYWEBVIEW_ANDROID_USES_CLEARTEXT_TRAFFIC
UNITYWEBVIEW_ANDROID_ENABLE_CAMERA
UNITYWEBVIEW_ANDROID_ENABLE_MICROPHONE

NOTICE

  • If you want to access files that are in external storage (like download, picture). you need to add follow manifest in Android 11 (detail).
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
  • Now supports play in VR (link).

TODO

  • Vulkan support

Link

Source code of the java plugin used

About

Plug-in for WebView that runs in Unity and can display WebView results as Texture2D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%