TLabAltoh / TLabWebView

Plug-in for WebView that runs in Unity and can display WebView results as Texture2D
https://tlabgames.gitbook.io/tlabwebview/
MIT License
4 stars 4 forks source link
android unity unity3d webview

TLabWebView

日本語版READMEはこちら

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

"Buy Me A Coffee"

Document

document is here

Unity version this plugin supports

Graphics api this plugin supports

Screenshot

Screenshot run on Android 13, Adreno 619

Operating Environment

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

Getting Started

Requirements

Installing

Please see here #### Submodule Clone this repository with the following command ``` git clone https://github.com/TLabAltoh/TLabWebView.git ``` or ``` git submodule add https://github.com/TLabAltoh/TLabWebView.git ``` #### UPM ```add package from git URL ...``` ``` https://github.com/TLabAltoh/TLabWebView.git#upm ```

Set Up

Please see here - Build Settings | Property | Value | | ------------- | ------- | | Platform | Android | - Project Settings | Property | Value | | ----------------- | ------------------------------------- | | Color Space | Linear | | 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 ```

Prefab

Prefab is here. Just add prefab to the canvas to implement webview

/Resources/TLabWebView.prefab

NOTICE

TODO

Link

Source code of the java plugin used